Skip to content

Commit 9a08c07

Browse files
author
Rik Smale
committed
ci: reuse build artifacts in test matrix
1 parent 1cadcd4 commit 9a08c07

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
name: Build on Node.js 22
10+
name: Build on Node.js 24
1111
steps:
12-
- name: Setup Node.js 22
12+
- name: Setup Node.js 24
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: 22
15+
node-version: 24
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818
- name: Install dependencies
@@ -47,10 +47,14 @@ jobs:
4747
node-version: ${{ matrix.node-version }}
4848
- name: Checkout repository
4949
uses: actions/checkout@v4
50+
- name: Download build artifacts
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: build-artifacts
5054
- name: Install dependencies
5155
run: npm install --legacy-peer-deps
5256
- name: Run tests
53-
run: npm test
57+
run: npm run test:ci
5458
- if: matrix.node-version == 24
5559
name: Send coverage info to Codecov
5660
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)