-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.14 KB
/
test.yaml
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
name: Run unit test
on:
push:
branches:
- migration
pull_request:
branches:
- migration
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
- name: Install latest nextest release
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: cargo-llvm-cov
- name: Generate coverage report
run: |
cargo llvm-cov --no-report nextest
cargo llvm-cov --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}