File tree 1 file changed +31
-4
lines changed
1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,37 @@ jobs:
42
42
steps :
43
43
- uses : actions/checkout@v2
44
44
- uses : Swatinem/rust-cache@v1
45
- - name : Build
46
- run : cargo build --tests --verbose
47
- - name : Run tests
48
- run : cargo test --verbose
45
+ - uses : actions-rs/toolchain@v1
46
+ with :
47
+ components : llvm-tools-preview
48
+ override : true
49
+ toolchain : stable
50
+ - uses : actions-rs/cargo@v1
51
+ with :
52
+ command : test
53
+ args : --all-features --no-fail-fast
54
+ env :
55
+ LLVM_PROFILE_FILE : " nldl-%p-%m.profraw"
56
+ RUSTFLAGS : ' -Cinstrument-coverage'
57
+ - use : actions-rs/cargo@v1
58
+ with :
59
+ command : install
60
+ args : grcov
61
+ - id : coverage
62
+ run : |
63
+ grcov \
64
+ --branch \
65
+ --ignore-not-existing \
66
+ --llvm \
67
+ --binary-path=target/debug/ \
68
+ --output-path=target/debug/lcov.info \
69
+ --output-type=lcov \
70
+ --source-dir=. \
71
+ .
72
+ echo '::set-output name=report::target/debug/lcov.info'
73
+ - uses : codecov/codecov-action@v2
74
+ with :
75
+ files : ${{ steps.coverage.outputs.report }}
49
76
50
77
check-readme :
51
78
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments