Skip to content

Commit 551f89d

Browse files
authored
ci: update workspace config (#245)
1 parent 8e45e73 commit 551f89d

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

.github/workflows/workspace.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
- README.md
77
push:
88
branches: master
9-
paths-ignore:
10-
- README.md
119

1210
jobs:
1311
clippy:
@@ -17,27 +15,41 @@ jobs:
1715
- uses: RustCrypto/actions/cargo-cache@master
1816
- uses: dtolnay/rust-toolchain@master
1917
with:
20-
toolchain: 1.85.0
18+
toolchain: 1.93.0
2119
components: clippy
22-
- run: cargo clippy --all -- -D warnings
20+
- run: cargo clippy --workspace --all-features --lib --bins --tests -- -D warnings
2321

24-
rustfmt:
22+
doc:
2523
runs-on: ubuntu-latest
2624
steps:
27-
- name: Checkout sources
28-
uses: actions/checkout@v6
25+
- uses: actions/checkout@v6
26+
- uses: dtolnay/rust-toolchain@master
27+
with:
28+
toolchain: stable
29+
- env:
30+
RUSTDOCFLAGS: "-Dwarnings"
31+
run: cargo doc --workspace --all-features
2932

30-
- name: Install stable toolchain
31-
uses: dtolnay/rust-toolchain@master
33+
rustfmt:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v6
37+
- uses: dtolnay/rust-toolchain@master
3238
with:
3339
toolchain: stable
3440
components: rustfmt
35-
36-
- name: Run cargo fmt
37-
run: cargo fmt --all -- --check
41+
- run: cargo fmt --all -- --check
3842

3943
typos:
4044
runs-on: ubuntu-latest
4145
steps:
4246
- uses: actions/checkout@v6
4347
- uses: crate-ci/typos@v1
48+
49+
lock:
50+
name: Check Cargo.lock
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v6
54+
- uses: dtolnay/rust-toolchain@stable
55+
- run: cargo check --workspace --locked

0 commit comments

Comments
 (0)