Skip to content

Commit 3bdd540

Browse files
committed
ci: add clippy, fmt, and test workflows
1 parent ba13b54 commit 3bdd540

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
fmt:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: cargo fmt --check
17+
18+
clippy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: Swatinem/rust-cache@v2
23+
- run: cargo clippy --all-targets --all-features -- -D warnings
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: Swatinem/rust-cache@v2
30+
- run: cargo test --all-features

0 commit comments

Comments
 (0)