forked from p2p-org/solana-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 889 Bytes
/
unit-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)