File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Audit Dependencies"
2+ on :
3+ push :
4+ paths :
5+ # Run if workflow changes
6+ - " .github/workflows/audit.yml"
7+ # Run on changed dependencies
8+ - " **/Cargo.toml"
9+ - " **/Cargo.lock"
10+ # Run if the configuration file changes
11+ - " **/audit.toml"
12+ # Rerun periodicly to pick up new advisories
13+ schedule :
14+ - cron : " 0 0 * * *"
15+ # Run manually
16+ workflow_dispatch :
17+
18+ jobs :
19+ audit :
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : read
23+ issues : write
24+ steps :
25+ - uses : actions/checkout@v4
26+ - uses : actions-rust-lang/audit@v1
27+ name : Audit Rust Dependencies
Original file line number Diff line number Diff line change 1+ name : " Make sure the project compiles successfully"
2+ on :
3+ push :
4+ pull_request :
5+
6+ jobs :
7+ build :
8+ name : cargo build
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions-rust-lang/setup-rust-toolchain@v1
13+ - run : cargo build --release
14+ formatting :
15+ name : cargo fmt
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : actions-rust-lang/setup-rust-toolchain@v1
20+ with :
21+ components : rustfmt
22+ - name : Rustfmt Check
23+ uses : actions-rust-lang/rustfmt@v1
24+ clippy :
25+ name : cargo clippy
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v4
29+ - uses : actions-rust-lang/setup-rust-toolchain@v1
30+ with :
31+ components : clippy
32+ - run : cargo clippy
You can’t perform that action at this time.
0 commit comments