Beta support for Swift Testing (#25) #81
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
macos: | |
name: macOS | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode 15 | |
run: sudo xcode-select -s /Applications/Xcode_15.0.app | |
- name: Run tests | |
run: swift test | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Swift | |
uses: slashmo/[email protected] | |
with: | |
version: swift-5.9-DEVELOPMENT-SNAPSHOT-2023-09-16-a | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: swift test | |
# NB: 5.9 snapshot unavailable, wait for release | |
# wasm: | |
# name: Wasm | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# include: | |
# - { toolchain: wasm-5.9-RELEASE } | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - run: echo "${{ matrix.toolchain }}" > .swift-version | |
# - uses: swiftwasm/[email protected] | |
# with: | |
# shell-action: carton test --environment node | |
# NB: 5.9 snapshot outdated, wait for release | |
# windows: | |
# name: Windows | |
# runs-on: windows-latest | |
# steps: | |
# - uses: compnerd/gha-setup-swift@main | |
# with: | |
# branch: swift-5.9-release | |
# tag: 5.9-DEVELOPMENT-SNAPSHOT-2023-09-16-a | |
# - uses: actions/checkout@v4 | |
# - name: Run tests | |
# run: swift test |