File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Code Checks
2+
3+ on : [push]
4+
5+ env :
6+ CARGO_TERM_COLOR : always
7+ CARGOFLAGS : --workspace --all-targets --all-features
8+
9+ jobs :
10+ formatting :
11+ name : Check formatting
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : ./.github/actions/install-risc0
17+ with :
18+ github_token : ${{ secrets.GITHUB_TOKEN }}
19+ - name : Run Cargo fmt
20+ run : cargo fmt --check
21+
22+ linting :
23+ name : Check linting
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - uses : actions/checkout@v4
28+ - name : Install cargo-clippy
29+ run : rustup component add --toolchain 1.85-x86_64-unknown-linux-gnu clippy
30+ - name : Run Cargo clippy
31+ run : cargo clippy --no-deps --all-targets $AUTOMATION_ARGS -- -Dwarnings
32+
33+ udeps :
34+ name : Check unused dependencies
35+ runs-on : ubuntu-latest
36+
37+ steps :
38+ - uses : actions/checkout@v4
39+ - uses : ./.github/actions/install-risc0
40+ with :
41+ github_token : ${{ secrets.GITHUB_TOKEN }}
42+
43+ - name : Toolchain
44+ uses : actions-rs/toolchain@v1
45+ with :
46+ toolchain : nightly-2025-03-09
47+ override : true
48+
49+ - name : Run cargo-udeps
50+ env :
51+ RUSTFLAGS : -A warnings
52+ uses : aig787/cargo-udeps-action@v1
53+ with :
54+ version : " latest"
55+ args : " --workspace --all-features --all-targets ${{ env.AUTOMATION_ARGS }}"
56+
57+ codespell :
58+ name : Check spelling
59+ runs-on : ubuntu-latest
60+ steps :
61+ - uses : actions/checkout@v4
62+
63+ - name : Set up Python
64+ uses : actions/setup-python@v5
65+ with :
66+ python-version : " 3.x"
67+
68+ - name : Install codespell
69+ run : pip install codespell
70+
71+ - name : Run codespell
72+ run : |
73+ codespell --skip="*.lock,./target" -I="codespell_ignore.txt"
You can’t perform that action at this time.
0 commit comments