Skip to content

Commit dfeff76

Browse files
authored
Merge pull request #2 from csssuf/jmf/ci
chore: add PR CI workflow
2 parents 59dfb2b + d43d6bb commit dfeff76

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Install Rust
14+
uses: dtolnay/rust-toolchain@stable
15+
with:
16+
components: rustfmt, clippy
17+
18+
- name: Format
19+
if: always()
20+
run: cargo fmt -- --check
21+
22+
- name: Lint
23+
if: always()
24+
run: cargo clippy --all-targets --all-features -- -D warnings
25+
26+
- name: Test
27+
if: always()
28+
run: cargo test

0 commit comments

Comments
 (0)