File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ workflow_dispatch :
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+ CARGO_INCREMENTAL : 0
12+ CARGO_NET_RETRY : 10
13+ RUST_BACKTRACE : short
14+ RUSTUP_MAX_RETRIES : 10
15+
16+ jobs :
17+ rust_tests :
18+ runs-on : ubuntu-latest
19+ concurrency :
20+ group : test-${{ github.ref }}
21+ cancel-in-progress : true
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : taiki-e/install-action@v2
25+ with :
26+ 27+ - uses : dtolnay/rust-toolchain@master
28+ with :
29+ toolchain : 1.81.0
30+ components : rustfmt, clippy
31+ - name : Compile
32+ run : just cargo-compile
33+ - name : Lint
34+ run : just lint
35+ - name : Test
36+ run : just carg-test
Original file line number Diff line number Diff line change 1+ # List all recipes
2+ default :
3+ just --list --unsorted
4+
5+ # cargo compile
6+ cargo-compile :
7+ cargo test --workspace --no-run --locked
8+
9+ # Test
10+ cargo-test :
11+ cargo nextest run --workspace --locked
12+
13+ # cargo clippy check
14+ cargo-clippy-check :
15+ cargo clippy --no-deps --workspace --locked --tests --benches --examples -- -Dwarnings
16+
17+ # cargo fmt check
18+ cargo-fmt-check :
19+ cargo fmt --all --check
20+
21+ # Lint
22+ lint :
23+ just cargo-clippy-check
24+ just cargo-fmt-check
You can’t perform that action at this time.
0 commit comments