Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 76e910e

Browse files
author
Aomine Daiki
committed
Refactor GitHub Actions workflow for Rust CI by removing unnecessary whitespace and improving formatting consistency. Commented out cargo-deny steps in the sast job for future consideration.
1 parent 72045d2 commit 76e910e

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

.github/workflows/rust.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Rust CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -13,38 +13,38 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: Install Rust
18-
uses: dtolnay/rust-toolchain@stable
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
16+
- uses: actions/checkout@v4
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose
2323

2424
lint:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v4
28-
- name: Install Rust
29-
uses: dtolnay/rust-toolchain@stable
30-
with:
31-
components: clippy, rustfmt
32-
- name: Check formatting
33-
run: cargo fmt -- --check
34-
- name: Run clippy
35-
run: cargo clippy -- -D warnings
27+
- uses: actions/checkout@v4
28+
- name: Install Rust
29+
uses: dtolnay/rust-toolchain@stable
30+
with:
31+
components: clippy, rustfmt
32+
- name: Check formatting
33+
run: cargo fmt -- --check
34+
- name: Run clippy
35+
run: cargo clippy -- -D warnings
3636

3737
sast:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v4
41-
- name: Install Rust
42-
uses: dtolnay/rust-toolchain@stable
43-
- name: Install cargo-audit
44-
run: cargo install cargo-audit
45-
- name: Run cargo-audit
46-
run: cargo audit
47-
- name: Install cargo-deny
48-
run: cargo install cargo-deny
49-
- name: Run cargo-deny
50-
run: cargo deny check
40+
- uses: actions/checkout@v4
41+
- name: Install Rust
42+
uses: dtolnay/rust-toolchain@stable
43+
- name: Install cargo-audit
44+
run: cargo install cargo-audit
45+
- name: Run cargo-audit
46+
run: cargo audit
47+
# - name: Install cargo-deny
48+
# run: cargo install cargo-deny
49+
# - name: Run cargo-deny
50+
# run: cargo deny check

0 commit comments

Comments
 (0)