Skip to content

Commit 7ff5c91

Browse files
committed
chore: add action for testing and linting PRs
1 parent de03bba commit 7ff5c91

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/test-lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Install Rust
30+
uses: actions-rust-lang/setup-rust-toolchain@v1
31+
with:
32+
toolchain: stable
33+
components: clippy
34+
35+
- name: Run clippy
36+
run: cargo clippy -- -Dwarnings

0 commit comments

Comments
 (0)