Skip to content

Commit 3790cc8

Browse files
authored
Update test-action.yml
1 parent c595823 commit 3790cc8

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/test-action.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222
jobs:
23-
test-action:
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
os: [ubuntu-latest, macos-latest, windows-latest]
28-
runs-on: ${{ matrix.os }}
23+
build:
24+
runs-on: ubuntu-latest
2925
steps:
3026
- uses: actions/checkout@v4
3127
- uses: actions/setup-node@v4
@@ -34,6 +30,23 @@ jobs:
3430
cache: npm
3531
- run: npm ci
3632
- run: npm run build
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: action-dist
36+
path: ./dist
37+
test:
38+
runs-on: ${{ matrix.os }}
39+
needs: build
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
os: [ubuntu-latest, macos-latest, windows-latest]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/download-artifact@v4
47+
with:
48+
name: action-dist
49+
path: ./dist
3750
- uses: ./
3851
with:
3952
cache-dependency-path: test/requirements.typ

0 commit comments

Comments
 (0)