Skip to content

Commit 52b3a01

Browse files
committed
ci: split rustfmt and clippy into separate jobs
Signed-off-by: Alan Wandke <[email protected]>
1 parent 979b3f2 commit 52b3a01

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/rust-lint.yml renamed to .github/workflows/rust-clippy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Rust Format and Clippy
33

44
on:
55
push:
6+
branches: [main]
67
pull_request:
78
branches: [main]
89

@@ -17,8 +18,5 @@ jobs:
1718
- name: Checkout code
1819
uses: actions/checkout@v4
1920

20-
- name: Check formatting
21-
run: cargo fmt -- --check
22-
2321
- name: Run Clippy
2422
run: cargo clippy --all-targets --all-features --no-deps

.github/workflows/rustfmt.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Rust Format and Clippy
3+
4+
on:
5+
push:
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
container:
14+
# This could be optimized to use a smaller image
15+
image: ghcr.io/nationalsecurityagency/seabee:build
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Check formatting
22+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)