Move test suite to Swift Testing #56
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
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linux: | |
name: Linux SPM unit tests | |
runs-on: ubuntu-latest | |
container: | |
image: swift:6.0 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Run tests | |
run: swift test | |
macos: | |
name: macOS tests | |
runs-on: macos-14 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16.0' | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: SPM tests | |
run: make test | |
- name: Normalize coverage info | |
run: xcrun llvm-cov export -format lcov .build/debug/SourceMapperPackageTests.xctest/Contents/MacOS/SourceMapperPackageTests -instr-profile .build/debug/codecov/default.profdata -ignore-filename-regex "(Test|checkouts)" > coverage.lcov | |
- name: Upload coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
files: ./coverage.lcov | |
verbose: true | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-6.0-release | |
tag: 6.0-RELEASE | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Run tests | |
run: swift test -v --enable-test-discovery |