Skip to content

Fix CI for Swift 6

Fix CI for Swift 6 #25

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "6"
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --enable-code-coverage
- name: Shim llvm-cov
run: alias llvm-cov="$(which xcrun || true) llvm-cov"
- name: Calculate Code Coverage
uses: maxep/[email protected]
with:
output-file: coverage.json
file-format: text