Skip to content

Commit 261783a

Browse files
committed
chore(workflows/CI): combine build & test jobs
1 parent 30f1ba0 commit 261783a

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
build:
16-
name: cargo build
16+
name: cargo build & test
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest]
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
shared-key: "build"
3131
- run: cargo build --all-targets
32+
- run: cargo test
3233

3334
clippy:
3435
name: cargo clippy
@@ -58,17 +59,6 @@ jobs:
5859
- run: bash test/test_all.sh
5960
- run: git diff --exit-code --stat || exit 1
6061

61-
# things that use the cargo-test cache
62-
test:
63-
name: cargo test
64-
runs-on: ubuntu-latest
65-
steps:
66-
- uses: actions/checkout@v4
67-
- uses: rui314/setup-mold@v1
68-
- uses: dtolnay/rust-toolchain@stable
69-
- uses: Swatinem/rust-cache@v2
70-
- run: cargo test
71-
7262
# Things that don't need a cache
7363
fmt:
7464
name: cargo fmt
@@ -84,7 +74,7 @@ jobs:
8474
release:
8575
runs-on: ubuntu-latest
8676
name: release
87-
needs: [build, clippy, test, test-script, fmt]
77+
needs: [build, clippy, test-script, fmt]
8878
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
8979
permissions:
9080
contents: write # for actions/checkout to fetch code and for semantic-release to push commits, release releases and tags

0 commit comments

Comments
 (0)