Skip to content

Move CI to Xcode 15.3, macOS 14 #48

Move CI to Xcode 15.3, macOS 14

Move CI to Xcode 15.3, macOS 14 #48

Workflow file for this run

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: swift 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