Skip to content

Commit e3a829e

Browse files
ci: add github actions workflow
1 parent 78577d5 commit e3a829e

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
cargo-deny:
7+
name: cargo-deny
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: EmbarkStudios/cargo-deny-action@v2
13+
14+
fmt:
15+
name: rustfmt / 1.85.0
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: dtolnay/[email protected]
22+
with:
23+
components: rustfmt
24+
25+
- name: Rust rustfmt
26+
run: cargo fmt --all -- --check
27+
28+
clippy:
29+
name: clippy / 1.85.0
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: dtolnay/[email protected]
36+
with:
37+
components: clippy
38+
39+
- name: Run clippy
40+
run: cargo clippy --all-features -- -D warnings
41+
42+
test:
43+
name: test / ${{ matrix.name }}
44+
runs-on: ubuntu-latest
45+
46+
strategy:
47+
matrix:
48+
include:
49+
- name: stable
50+
rust: stable
51+
- name: beta
52+
rust: beta
53+
- name: nightly
54+
rust: nightly
55+
- name: 1.83.0
56+
rust: 1.83.0
57+
58+
steps:
59+
- uses: actions/checkout@v4
60+
61+
- uses: dtolnay/rust-toolchain@master
62+
with:
63+
toolchain: ${{ matrix.rust }}
64+
65+
- name: Run tests
66+
run: cargo test

0 commit comments

Comments
 (0)