Skip to content

Release 2.0.0

Release 2.0.0 #33

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
LCOV_PATH: .build/artifacts/info.lcov
BUILD_FOLDER: .build/debug/PhantomKitPackageTests.xctest/Contents/MacOS/PhantomKitPackageTests
PROFDATA_FOLDER: .build/debug/codecov/default.profdata
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: |
swift test --enable-code-coverage
xcrun llvm-cov report $BUILD_FOLDER -instr-profile $PROFDATA_FOLDER
xcrun llvm-cov export -format="lcov" $BUILD_FOLDER -instr-profile $PROFDATA_FOLDER > $LCOV_PATH
- name: Upload Coverage Data
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ env.LCOV_PATH }}
fail_ci_if_error: true