File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI checks & tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ env :
8+ CARGO_TERM_COLOR : always
9+ CI : " true" # https://insta.rs/docs/quickstart/#continuous-integration
10+
11+ jobs :
12+ format :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - run : rustup component add rustfmt
17+ - run : cargo fmt -- --check
18+
19+ test :
20+ runs-on : ubuntu-latest
21+ strategy :
22+ matrix :
23+ toolchain :
24+ - stable
25+ - beta
26+ - nightly
27+ steps :
28+ - uses : actions/checkout@v4
29+ - run : rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
30+ - run : rustup component add clippy
31+ - run : cargo build --verbose
32+ - run : cargo clippy --all-features -- --deny warnings --forbid unsafe_code
33+ - run : cargo test --verbose
34+
35+ semver-checks :
36+ # https://github.com/obi1kenobi/cargo-semver-checks-action
37+ runs-on : ubuntu-latest
38+ steps :
39+ - name : Checkout
40+ uses : actions/checkout@v4
41+ - name : Check semver
42+ uses : obi1kenobi/cargo-semver-checks-action@v2
You can’t perform that action at this time.
0 commit comments