Release 2.0.0 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |