Skip to content

Commit 1c63dc3

Browse files
authored
Enhance Rust CI workflow with additional checks
Added steps for checking formatting, running clippy, and creating a release build.
1 parent d07ea98 commit 1c63dc3

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/rust.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Rust CI
22

33
on:
44
push:
@@ -15,8 +15,20 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Check formatting
22+
run: cargo fmt -- --check
23+
24+
- name: Run clippy
25+
run: cargo clippy --all-targets --all-features -- -D warnings
26+
27+
- name: Build
28+
run: cargo build --verbose
29+
30+
- name: Run tests
31+
run: cargo test --verbose
32+
33+
- name: Release build
34+
run: cargo build --release

0 commit comments

Comments
 (0)