File tree Expand file tree Collapse file tree 1 file changed +25
-33
lines changed Expand file tree Collapse file tree 1 file changed +25
-33
lines changed Original file line number Diff line number Diff line change 1
- name : Lambdaworks build checks
1
+ name : CI
2
2
on :
3
3
push :
4
4
branches : [ main ]
@@ -10,8 +10,8 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
- check :
14
- name : Check
13
+ compile :
14
+ name : Compile
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout sources
28
28
uses : actions-rs/cargo@v1
29
29
with :
30
30
command : check
31
-
32
- coverage :
33
- runs-on : macos-latest
34
- env :
35
- CARGO_TERM_COLOR : always
36
- steps :
37
- - uses : actions/checkout@v3
38
- - uses : actions-rs/toolchain@v1
39
- with :
40
- toolchain : stable
41
- components : clippy
42
- - name : Install cargo-llvm-cov
43
- uses : taiki-e/install-action@cargo-llvm-cov
44
- - name : Generate code coverage
45
- run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
46
- - name : Upload coverage to Codecov
47
- uses : codecov/codecov-action@v3
48
- with :
49
- token : ${{ secrets.CODECOV_TOKEN }}
50
- files : lcov.info
51
- fail_ci_if_error : true
52
-
53
- fmt :
54
- name : Lints
31
+ lint :
32
+ name : Lint
55
33
runs-on : ubuntu-latest
56
34
steps :
57
35
- name : Checkout sources
@@ -70,13 +48,27 @@ jobs:
70
48
with :
71
49
command : fmt
72
50
args : --all -- --check
73
-
74
- clippy :
75
- runs-on : ubuntu-latest
51
+
52
+ - name : Run clippy
53
+ run : make clippy
54
+ test :
55
+ name : Test
56
+ runs-on : macos-latest
57
+ env :
58
+ CARGO_TERM_COLOR : always
76
59
steps :
77
60
- uses : actions/checkout@v3
78
61
- uses : actions-rs/toolchain@v1
79
62
with :
80
- toolchain : stable
81
- components : clippy
82
- - run : make clippy
63
+ toolchain : stable
64
+ components : clippy
65
+ - name : Install cargo-llvm-cov
66
+ uses : taiki-e/install-action@cargo-llvm-cov
67
+ - name : Run tests and generate code coverage
68
+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
69
+ - name : Upload coverage to Codecov
70
+ uses : codecov/codecov-action@v3
71
+ with :
72
+ token : ${{ secrets.CODECOV_TOKEN }}
73
+ files : lcov.info
74
+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments