-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.03 KB
/
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
name: 🧪 Test
on: [push, pull_request]
jobs:
all:
# Run tests on Linux
name: Test
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@master
- name: Run tests
run: cargo test --verbose --workspace
- name: Run tests with all features
run: cargo test --verbose --workspace --all-features
# Install grcov
- name: Install grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.18/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Use grcov to generate a coverage report
- name: Generate coverage report
id: coverage
uses: actions-rs/cargo@v1
with:
command: xtask
args: coverage
# Upload the coverage report to codecov
- name: Upload coverage report to codecov
id: codecov
uses: codecov/codecov-action@v3
with:
files: coverage/*.lcov