Skip to content

Commit 53ac226

Browse files
Add GitHub Actions CI: fmt, clippy, tests
1 parent b2112bb commit 53ac226

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Rust CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install Rust toolchain
15+
uses: dtolnay/rust-toolchain-action@v1
16+
with:
17+
toolchain: stable
18+
- name: Install components
19+
run: rustup component add clippy rustfmt || true
20+
- name: Check formatting
21+
run: cargo fmt -- --check
22+
- name: Run clippy
23+
run: cargo clippy -- -D warnings
24+
- name: Run tests
25+
run: cargo test --all

0 commit comments

Comments
 (0)