Commit 84b2f3d 1 parent b9bed6f commit 84b2f3d Copy full SHA for 84b2f3d
File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ name: Rust
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+ lint :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ - name : Check fmt
11
+ run : cargo fmt -- --check
12
+
13
+ test :
7
14
strategy :
8
15
matrix :
9
16
platform : [ubuntu-latest, windows-latest]
@@ -15,20 +22,24 @@ jobs:
15
22
RUSTFLAGS : -C instrument-coverage
16
23
17
24
steps :
25
+ - uses : actions/checkout@v3
18
26
- name : Install coverage reporter (llvm-tools-preview)
19
27
if : runner.os == 'Linux'
20
28
run : rustup component add llvm-tools-preview
21
29
- name : Install coverage reporter (grcov)
22
30
if : runner.os == 'Linux'
23
31
run : cargo install grcov
24
- - uses : actions/checkout@v1
32
+
25
33
- name : Build
26
34
run : cargo build
27
35
- name : Build benchmarks
28
36
run : cargo bench --no-run
29
37
- name : Build benchmarks (compare)
30
38
working-directory : compare
31
39
run : cargo bench --no-run
40
+ - name : Run tests + benchmarks
41
+ run : cargo test --all-features --benches --tests
42
+
32
43
- name : Run tests (no features)
33
44
env :
34
45
LLVM_PROFILE_FILE : coverage/no-features-%p-%m.profraw
67
78
flags : unittests
68
79
verbose : true
69
80
continue-on-error : true
70
- - name : Check fmt
71
- run : cargo fmt -- --check
72
81
You can’t perform that action at this time.
0 commit comments