Skip to content

Commit 968b06c

Browse files
committed
Add CI
1 parent e1c7ed7 commit 968b06c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
concurrency:
9+
group: ci-${{ github.ref_name }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
ci:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- name: Setup Rust
21+
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
22+
with:
23+
toolchain: stable
24+
components: rustfmt, clippy
25+
26+
- name: Format
27+
run: cargo fmt --all -- --check
28+
29+
- name: Clippy
30+
run: cargo clippy --all-features -- -D warnings
31+
32+
- name: Test
33+
run: cargo test

0 commit comments

Comments
 (0)