Add just and coverage check to CI
This commit is contained in:
parent
bd95f81e9b
commit
f8d066e2d7
1 changed files with 14 additions and 9 deletions
|
|
@ -6,21 +6,26 @@ jobs:
|
||||||
image: rust:slim
|
image: rust:slim
|
||||||
steps:
|
steps:
|
||||||
- name: install action dependencies
|
- name: install action dependencies
|
||||||
run: apt install --no-install-recommends --update -y nodejs
|
run: apt install --no-install-recommends --update -y nodejs just
|
||||||
- name: setup toolchain
|
- name: setup toolchain
|
||||||
run: rustup component add rustfmt clippy
|
run: |
|
||||||
|
rustup component add rustfmt clippy
|
||||||
|
cargo install cargo-llvm-cov --locked
|
||||||
|
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: cargo build
|
- name: build
|
||||||
run: cargo build
|
run: just build
|
||||||
|
|
||||||
- name: format
|
- name: format
|
||||||
run: cargo fmt -- --check
|
run: just format-assess
|
||||||
- name: lint
|
- name: lint
|
||||||
run: cargo clippy -- -Dwarnings
|
run: just lint
|
||||||
- name: format
|
- name: check
|
||||||
run: cargo fmt -- --check
|
run: just check
|
||||||
- name: test
|
- name: test
|
||||||
run: cargo test
|
run: just test
|
||||||
|
- name: coverage
|
||||||
|
run: just cover-assess
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue