Skip to content

Commit a23c6c2

Browse files
committed
Add ci workflow
1 parent 4a7798d commit a23c6c2

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
check:
12+
name: Run Clippy
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: cargo-bins/cargo-binstall@main
17+
- run: cargo clippy --all-targets --all-features
18+
- run: cargo binstall cargo-audit
19+
- run: cargo audit
20+
21+
analysis:
22+
name: Analysis
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v5
26+
- uses: cargo-bins/cargo-binstall@main
27+
- run: cargo binstall cargo-tarpaulin
28+
- run: cargo tarpaulin
29+
30+
build_and_test:
31+
name: Build and Test All Toolchains
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
toolchain:
36+
- stable
37+
- beta
38+
- nightly
39+
steps:
40+
- uses: actions/checkout@v4
41+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
42+
- run: cargo build --verbose
43+
- run: cargo test --verbose
44+

0 commit comments

Comments
 (0)