1 parent de03bba commit 7ff5c91Copy full SHA for 7ff5c91
1 file changed
.github/workflows/test-lint.yml
@@ -0,0 +1,36 @@
1
+name: Run tests and linter
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ test:
10
+ name: Run tests
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
15
+ - name: Install Rust
16
+ uses: actions-rust-lang/setup-rust-toolchain@v1
17
+ with:
18
+ toolchain: stable
19
20
+ - name: Run tests
21
+ run: cargo test
22
23
+ clippy:
24
+ name: Run clippy
25
26
27
28
29
30
31
32
33
+ components: clippy
34
35
+ - name: Run clippy
36
+ run: cargo clippy -- -Dwarnings
0 commit comments