-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 937 Bytes
/
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
27
28
29
30
31
32
33
34
35
36
37
name: test
on:
push:
pull_request:
merge_group:
jobs:
test-linux:
env:
CARGO_TERM_COLOR: always
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- name: Install tools required
uses: taiki-e/install-action@v2
with:
tool: just,cargo-nextest,cargo-llvm-cov
- name: Run tests
run: |
cd ${{ github.workspace }}
sudo apt install libibverbs1 librdmacm1
cargo clippy --all-targets -- -D warnings
cargo test
- name: Get coverage info
run: |
cargo +nightly llvm-cov
just test-basic-with-cov
just generate-cov
- name: Upload coverage information
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
file: lcov.info