File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # CI workflow runs all source quality tests. It does not build the release binary.
2+ #
3+ name : PortelloCI
4+
5+ on :
6+ push :
7+ branches : [ main, actions_test ]
8+ pull_request :
9+ branches : [ main ]
10+
11+ jobs :
12+ qc :
13+ name : Portello source QC
14+
15+ env :
16+ RUST_BACKTRACE : 1
17+ CARGO_TERM_COLOR : always
18+
19+ runs-on : ubuntu-22.04
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Install rust
26+ uses : dtolnay/rust-toolchain@master
27+ with :
28+ toolchain : 1.89.0
29+ components : clippy, rustfmt
30+
31+ - name : Check source formatting
32+ run : cargo fmt --check
33+
34+ - name : Build
35+ run : cargo build --verbose
36+
37+ - name : Test
38+ run : cargo test --verbose
39+
40+ - name : Clippy
41+ run : cargo clippy --verbose -- -D warnings
42+
43+ - name : Clippy on tests
44+ run : cargo clippy --tests --verbose -- -D warnings
You can’t perform that action at this time.
0 commit comments