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
22on :
33 push :
44 branches : [ main ]
@@ -10,8 +10,8 @@ concurrency:
1010 cancel-in-progress : true
1111
1212jobs :
13- check :
14- name : Check
13+ compile :
14+ name : Compile
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout sources
2828 uses : actions-rs/cargo@v1
2929 with :
3030 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
5533 runs-on : ubuntu-latest
5634 steps :
5735 - name : Checkout sources
@@ -70,13 +48,27 @@ jobs:
7048 with :
7149 command : fmt
7250 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
7659 steps :
7760 - uses : actions/checkout@v3
7861 - uses : actions-rs/toolchain@v1
7962 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