Skip to content

Commit a8de83f

Browse files
committed
basic ci
1 parent 88744f9 commit a8de83f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Rust ${{ matrix.rust }} • ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest]
17+
rust: [stable]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install Rust
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: ${{ matrix.rust }}
26+
override: true
27+
components: clippy, rustfmt
28+
29+
- name: Cargo fmt (check only)
30+
run: cargo fmt --all -- --check
31+
32+
- name: Clippy (deny warnings)
33+
run: cargo clippy --all-targets --all-features -- -D warnings
34+
35+
- name: Test
36+
env:
37+
RUST_BACKTRACE: 1
38+
run: cargo test --all-features --all-targets

0 commit comments

Comments
 (0)