Skip to content

Fixes for Swift 6 (#6) #52

Fixes for Swift 6 (#6)

Fixes for Swift 6 (#6) #52

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: '16.0-beta'
- 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