Skip to content

Commit 74fa9e1

Browse files
committed
add CI workflow on push and PRs
Signed-off-by: Antoine Tenart <[email protected]>
1 parent c5bb4eb commit 74fa9e1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Install the Rust toolchain
13+
run: |
14+
rustup override set nightly
15+
rustup update nightly
16+
rustup component add rustfmt clippy
17+
18+
- name: Check coding style
19+
run: cargo fmt --check
20+
21+
- name: Run linter
22+
run: cargo clippy -- -D warnings
23+
24+
- name: Unit tests
25+
run: cargo test --verbose

0 commit comments

Comments
 (0)