Token 2022 Support #196
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: Run unit test | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
unit-test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests | |
run: swift test --filter "SolanaSwiftUnitTests" --enable-code-coverage | |
- name: Processing converage data | |
run: | | |
xcrun llvm-cov export -format="lcov" .build/debug/SolanaSwiftPackageTests.xctest/Contents/MacOS/SolanaSwiftPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: ./info.lcov # optional | |
flags: unittests # optional | |
name: codecov-umbrella # optional | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) |