Skip to content

Update GitHub runner #163

Update GitHub runner

Update GitHub runner #163

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: [ "master", "backport", "develop" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --parallel --enable-code-coverage --xunit-output results.xml
- name: Gather code coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/Swift-fsmPackageTests.xctest/Contents/MacOS/Swift-fsmPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage_report.lcov
verbose: true
- uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
- name: Publish Results to Testspace
run: testspace results.xml