Skip to content

Commit a98a2cc

Browse files
committed
ci: update workflows
1 parent 4c6992c commit a98a2cc

File tree

2 files changed

+34
-28
lines changed

2 files changed

+34
-28
lines changed

.github/workflows/coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- id: checkout
2121
name: Checkout Repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- id: setup
2525
name: Setup Toolchain
@@ -46,7 +46,7 @@ jobs:
4646

4747
- id: upload
4848
name: Upload Coverage Report
49-
uses: codecov/codecov-action@v3
49+
uses: codecov/codecov-action@v4
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252
files: ${{ steps.coverage.outputs.report }}

.github/workflows/testing.yaml

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- id: checkout
1717
name: Checkout Repository
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- id: setup
2121
name: Setup Toolchain
@@ -39,71 +39,77 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
toolchain: [stable, nightly]
42+
toolchain: [nightly, stable]
4343

4444
steps:
4545
- id: checkout
4646
name: Checkout Repository
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848

4949
- id: setup
5050
name: Setup Toolchain
5151
uses: dtolnay/rust-toolchain@stable
5252
with:
53-
toolchain: nightly
53+
toolchain: ${{ matrix.toolchain }}
5454
components: clippy
5555

5656
- id: cache
5757
name: Enable Workflow Cache
5858
uses: Swatinem/rust-cache@v2
5959

60+
- id: tools
61+
name: Install Tools
62+
uses: taiki-e/install-action@v2
63+
with:
64+
tool: cargo-machete
65+
6066
- id: check
6167
name: Run Build Checks
62-
run: cargo check --workspace --all-targets --all-features
68+
run: cargo check --tests --benches --examples --workspace --all-targets --all-features
6369

6470
- id: lint
6571
name: Run Lint Checks
66-
run: cargo clippy --workspace --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious
72+
run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf -D clippy::style -D clippy::pedantic
6773

68-
- id: doc
69-
name: Run Documentation Checks
70-
run: cargo test --doc
74+
- id: docs
75+
name: Lint Documentation
76+
env:
77+
RUSTDOCFLAGS: "-D warnings"
78+
run: cargo doc --no-deps --bins --examples --workspace --all-features
79+
80+
- id: deps
81+
name: Check Unused Dependencies
82+
run: cargo machete
7183

72-
internal:
73-
name: Units and Integrations
84+
85+
unit:
86+
name: Units
7487
runs-on: ubuntu-latest
7588
needs: check
7689

7790
strategy:
7891
matrix:
79-
toolchain: [stable, nightly]
92+
toolchain: [nightly, stable]
8093

8194
steps:
8295
- id: checkout
8396
name: Checkout Repository
84-
uses: actions/checkout@v3
97+
uses: actions/checkout@v4
8598

8699
- id: setup
87100
name: Setup Toolchain
88101
uses: dtolnay/rust-toolchain@stable
89102
with:
90103
toolchain: ${{ matrix.toolchain }}
91-
components: llvm-tools-preview
92104

93105
- id: cache
94106
name: Enable Job Cache
95107
uses: Swatinem/rust-cache@v2
96108

97-
- id: test
98-
name: Run Code Tests
99-
run: cargo test --workspace --all-targets --all-features
100-
101-
- id: tools
102-
name: Install Coverage Tools
103-
uses: taiki-e/install-action@v2
104-
with:
105-
tool: cargo-llvm-cov, cargo-nextest
109+
- id: test-docs
110+
name: Run Documentation Tests
111+
run: cargo test --doc
106112

107-
- id: coverage
108-
name: Generate Coverage Report
109-
run: cargo llvm-cov nextest --workspace --all-targets --all-features
113+
- id: test
114+
name: Run Unit Tests
115+
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

0 commit comments

Comments
 (0)