Skip to content

Commit 5b4c783

Browse files
committed
chore(workflows/CI): combine build & test jobs
1 parent 0ac6375 commit 5b4c783

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
build:
18-
name: cargo build
18+
name: cargo build & test
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest]
@@ -29,6 +29,7 @@ jobs:
2929
toolchain: ${{ matrix.rust }}
3030
- uses: Swatinem/rust-cache@v2
3131
- run: cargo build --all-targets
32+
- run: cargo test
3233

3334
clippy:
3435
name: cargo clippy
@@ -54,17 +55,6 @@ jobs:
5455
- run: bash test/test_all.sh
5556
- run: git diff --exit-code --stat || exit 1
5657

57-
# things that use the cargo-test cache
58-
test:
59-
name: cargo test
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v4
63-
- uses: rui314/setup-mold@v1
64-
- uses: dtolnay/rust-toolchain@stable
65-
- uses: Swatinem/rust-cache@v2
66-
- run: cargo test
67-
6858
# Things that don't need a cache
6959
fmt:
7060
name: cargo fmt

0 commit comments

Comments
 (0)