Skip to content

Commit 2ca71bf

Browse files
committed
ci: split compat-test job: move compat-test prep to prep
1 parent 1496f73 commit 2ca71bf

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build-test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}-${{ matrix.node-version }}
3535
- name: Install Yarn dependencies
3636
run: yarn --immutable
37+
- uses: legobeat/npm-actions/publish@dev-multi
38+
id: local-publish
39+
- name: Cache package registry
40+
uses: actions/cache@v3
41+
with:
42+
path: /home/runner/work/_temp/_github_home/registry-data
43+
key: yarn-cache-${{ steps.local-publish.outputs.package-name }}-${{ steps.local-publish.outputs.package-shasum }}
3744
build:
3845
name: Build
3946
runs-on: ubuntu-latest
@@ -67,16 +74,20 @@ jobs:
6774
runs-on: ubuntu-latest
6875
needs:
6976
- prepare
77+
strategy:
78+
matrix:
79+
node-version: [18.x, 20.x]
7080
steps:
7181
- uses: actions/checkout@v3
72-
- uses: legobeat/npm-actions/publish@dev-multi
73-
id: local-publish
74-
- name: Cache package registry
82+
- name: Resture package registry cache
7583
uses: actions/cache@v3
7684
with:
7785
path: /home/runner/work/_temp/_github_home/registry-data
7886
key: yarn-cache-${{ steps.local-publish.outputs.package-name }}-${{ steps.local-publish.outputs.package-shasum }}
7987
- uses: legobeat/npm-actions/compat-test@dev-multi
88+
name: 'Install package as dependency using Node.js ${{ matrix.node-version }}'
89+
with:
90+
node-version: ${{ matrix.node-version }}
8091
- name: Require clean working directory
8192
shell: bash
8293
run: |

0 commit comments

Comments
 (0)