Skip to content

Commit 9e0c51f

Browse files
committed
Adds check step
1 parent de30b17 commit 9e0c51f

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ env:
88
latest_version: '1.78.0'
99

1010
jobs:
11-
testlatest:
12-
name: Test Latest
11+
test:
12+
name: Test
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
@@ -26,6 +26,25 @@ jobs:
2626
- uses: Swatinem/rust-cache@v2
2727
- run: cargo test --all-features --workspace --lib --tests --profile "ci"
2828

29+
# Check step to ensure that all targets are valid as the test step doesn't run them.
30+
check:
31+
name: Check
32+
runs-on: ${{ matrix.os }}
33+
strategy:
34+
matrix:
35+
os:
36+
- windows-latest
37+
- ubuntu-latest
38+
- macos-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Install Rust
42+
uses: dtolnay/rust-toolchain@stable
43+
with:
44+
toolchain: ${{ env.latest_version }}
45+
- uses: Swatinem/rust-cache@v2
46+
- run: cargo test --all-features --all-targets --workspace --lib --tests --profile "ci"
47+
2948
docs:
3049
name: Documentation
3150
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)