Skip to content

Commit 240f45b

Browse files
committed
Init CI
1 parent ec45d14 commit 240f45b

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.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: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
fmt:
11+
name: Format
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Check
17+
run: cargo fmt --all --check -- --config format_code_in_doc_comments=true
18+
19+
check:
20+
name: Check crate
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Check
26+
run: cargo check
27+
- name: Clippy
28+
run: cargo clippy -- -D warnings
29+
- name: Test
30+
run: cargo test

0 commit comments

Comments
 (0)