We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb42a3 commit 48d31f2Copy full SHA for 48d31f2
1 file changed
.github/workflows/rust.yml
@@ -0,0 +1,32 @@
1
+name: Rust CI
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build-and-test:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Rust
18
+ uses: actions/setup-rust@v1
19
+ with:
20
+ rust-version: stable
21
22
+ - name: Build
23
+ run: cargo build --verbose
24
25
+ - name: Run tests
26
+ run: cargo test --all --verbose
27
28
+ - name: Run clippy (linter)
29
+ run: cargo clippy --all -- -D warnings
30
31
+ - name: Run fmt (format check)
32
+ run: cargo fmt --all -- --check
0 commit comments