@@ -145,13 +145,36 @@ jobs:
145145 with :
146146 path : " **/node_modules"
147147 key : ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
148- - name : Use build cache
148+ - name : Install dependencies
149+ run : yarn --frozen-lockfile --ignore-engines
150+ if : steps.dependency-cache.outputs.cache-hit != 'true'
151+ - name : Download build artifacts
152+ uses : actions/download-artifact@v4
153+ with :
154+ name : dist-artifacts-${{ github.run_id }}
155+ path : packages
156+ - run : yarn test:integration
157+
158+ test-integration-next :
159+ needs : build
160+ name : " Integration Tests Next (Node ${{ matrix.node-version }}, OS ${{ matrix.os }})"
161+ strategy :
162+ fail-fast : false
163+ matrix :
164+ node-version : [18, 20, 22, 24]
165+ os : [ubuntu-latest, windows-latest]
166+ runs-on : ${{ matrix.os }}
167+ steps :
168+ - uses : actions/checkout@v4
169+ - uses : actions/setup-node@v4
170+ with :
171+ node-version : ${{ matrix.node-version }}
172+ - name : Use dependency cache
149173 uses : actions/cache@v4
174+ id : dependency-cache
150175 with :
151- path : .nxcache
152- key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
153- restore-keys : |
154- build-cache-key-${{ runner.os }}-
176+ path : " **/node_modules"
177+ key : ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
155178 - name : Install dependencies
156179 run : yarn --frozen-lockfile --ignore-engines
157180 if : steps.dependency-cache.outputs.cache-hit != 'true'
@@ -160,7 +183,7 @@ jobs:
160183 with :
161184 name : dist-artifacts-${{ github.run_id }}
162185 path : packages
163- - run : yarn test:integration
186+ - run : yarn test:integration-next
164187
165188 test-e2e :
166189 # We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
0 commit comments