Skip to content

Feature/xcode 16 and swift 6 fixes #73

Feature/xcode 16 and swift 6 fixes

Feature/xcode 16 and swift 6 fixes #73

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
lint:
runs-on: macos-14
environment: default
steps:
- uses: actions/checkout@v3
- name: Format lint
run: swiftformat --lint .
- name: Install swiftlint
run: brew update && brew install swiftlint
- name: Lint
run: swiftlint .
macos-test:
environment: default
strategy:
matrix:
include:
- os: macos-14
xcode: '15.3' # Swift 5.10
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Tests
run: swift test --enable-code-coverage --parallel
- name: Swift Coverage Report
run: xcrun llvm-cov export -format="lcov" .build/debug/NetworkServicePackageTests.xctest/Contents/MacOS//NetworkServicePackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # optional (default = false)