-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.15 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
37
38
39
40
41
42
43
44
45
name: 🧪 Test
on:
push:
branches:
- feat/libmake
pull_request:
branches:
- feat/libmake
release:
types: [created]
jobs:
all:
# Run tests on Linux
name: Test
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
- uses: actions/checkout@v4
- 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
# Upload the coverage report to codecov
- name: Upload coverage report to codecov
id: codecov
uses: codecov/codecov-action@v3
with:
files: coverage/*.lcov