Skip to content

Commit 1962ff1

Browse files
committed
Add more checks to the CI
1 parent 9d99558 commit 1962ff1

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,56 @@ on:
66
- main
77

88
env:
9+
RUSTFLAGS: -D warnings
10+
RUSTDOCFLAGS: -D warnings
911
RUST_BACKTRACE: 1
1012
CARGO_TERM_COLOR: always
1113
CLICOLOR: 1
1214

1315
jobs:
14-
cargo-check-msrv:
16+
cargo-check:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
1820
- uses: actions-rust-lang/setup-rust-toolchain@v1
19-
with:
20-
toolchain: "1.79"
21+
- uses: taiki-e/install-action@cargo-hack
2122

22-
- run: cargo check
23+
- run: cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
2324

2425
cargo-clippy:
2526
runs-on: ubuntu-latest
2627
steps:
27-
- uses: actions/checkout@v5
28+
- uses: actions/checkout@v6
2829
- uses: actions-rust-lang/setup-rust-toolchain@v1
2930

30-
- run: cargo clippy --workspace --all-targets -- -D warnings
31+
- run: cargo clippy --workspace --all-features --all-targets --keep-going
32+
33+
cargo-doc:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v6
37+
- uses: actions-rust-lang/setup-rust-toolchain@v1
38+
39+
- run: cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
3140

3241
cargo-fmt:
3342
runs-on: ubuntu-latest
3443
steps:
35-
- uses: actions/checkout@v5
44+
- uses: actions/checkout@v6
3645
- uses: actions-rust-lang/setup-rust-toolchain@v1
3746

38-
- run: cargo fmt --check
47+
- run: cargo fmt --all --check
3948

4049
cargo-test:
4150
runs-on: ${{ matrix.os }}
4251
strategy:
4352
matrix:
4453
os: [ubuntu-latest, windows-latest, macos-latest]
45-
# if one OS fails, still test the other ones
4654
continue-on-error: true
4755
steps:
48-
- uses: actions/checkout@v5
56+
- uses: actions/checkout@v4
4957
- uses: actions-rust-lang/setup-rust-toolchain@v1
58+
- uses: taiki-e/install-action@cargo-hack
5059

51-
- run: cargo test --workspace
60+
- run: cargo test --workspace --no-run
61+
- run: cargo hack test --each-feature --workspace

.github/workflows/typos.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Spelling
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: "${{ github.workflow }}-${{ github.ref }}"
13+
cancel-in-progress: true
14+
15+
jobs:
16+
spelling:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v6
20+
- uses: crate-ci/typos@master

0 commit comments

Comments
 (0)