Move CI to Xcode 15.3, macOS 14 #47
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:5.10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: make test | |
macos: | |
name: macOS tests | |
runs-on: macos-14 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 15.3 | |
- uses: actions/checkout@v4 | |
- 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-5.10-release | |
tag: 5.10-RELEASE | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: swift test -v --enable-test-discovery |