Skip to content

Commit 3c756cb

Browse files
committed
Add CI
1 parent 71ddae1 commit 3c756cb

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["trunk"]
6+
pull_request:
7+
8+
jobs:
9+
fmt:
10+
name: Format
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: rustup component add rustfmt
15+
- run: cargo fmt --check
16+
17+
clippy:
18+
name: Clippy
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- run: rustup component add clippy
23+
- run: cargo clippy -- -D warnings
24+
25+
test:
26+
name: Test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- run: cargo test
31+
32+
msrv:
33+
name: MSRV (1.31)
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@master
38+
with:
39+
toolchain: "1.31"
40+
- run: cargo +1.31 check

0 commit comments

Comments
 (0)