Split CLI into its own package #539
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Swift | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-knit: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: swift-actions/setup-swift@v2.1.0 | |
with: | |
swift-version: "5.10" | |
- name: Build Knit | |
run: swift build -v | |
- name: Run Knit tests | |
run: swift test -v | |
build-knit-cli: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: swift-actions/setup-swift@v2.1.0 | |
with: | |
swift-version: "5.10" | |
- name: Build Knit CLI | |
run: | |
cd CLI | |
swift build -v | |
- name: Run Knit CLI tests | |
run: | |
cd CLI | |
swift test -v |