Skip to content

Commit 493c242

Browse files
committed
ci: run cache-components tests against cache-components app
1 parent 7c0aa79 commit 493c242

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ jobs:
2525
pull-requests: write # Grant write access to pull request comments
2626
strategy:
2727
matrix:
28-
next-test-app:
29-
- next-app-15-0-3
30-
- next-app-15-3-2
31-
- next-app-15-4-7
32-
- next-app-16-0-3
28+
include:
29+
- next-test-app: next-app-15-0-3
30+
run-cache-components: false
31+
- next-test-app: next-app-15-3-2
32+
run-cache-components: false
33+
- next-test-app: next-app-15-4-7
34+
run-cache-components: false
35+
- next-test-app: next-app-16-0-3
36+
run-cache-components: true
3337

3438

3539
steps:
@@ -78,16 +82,24 @@ jobs:
7882
SKIP_BUILD: true
7983
NEXT_TEST_APP: ${{ matrix.next-test-app }}
8084

81-
- name: Run Cache Components integration tests (Next 16 only)
82-
if: matrix.next-test-app == 'next-app-16-0-3'
85+
- name: Install Cache Components Integration Test Project
86+
if: matrix.run-cache-components
87+
run: cd test/integration/next-app-16-1-1-cache-components && pnpm install
88+
89+
- name: Build Cache Components Integration Test Project
90+
if: matrix.run-cache-components
91+
run: cd test/integration/next-app-16-1-1-cache-components && pnpm build
92+
93+
- name: Run Cache Components integration tests
94+
if: matrix.run-cache-components
8395
run: pnpm test:cache-components
8496

85-
- name: Install Playwright browsers (Next 16 only)
86-
if: matrix.next-test-app == 'next-app-16-0-3'
97+
- name: Install Playwright browsers
98+
if: matrix.run-cache-components
8799
run: pnpm exec playwright install --with-deps
88100

89-
- name: Run Playwright E2E tests (Next 16 only)
90-
if: matrix.next-test-app == 'next-app-16-0-3'
101+
- name: Run Playwright E2E tests
102+
if: matrix.run-cache-components
91103
run: pnpm test:e2e
92104
env:
93105
PLAYWRIGHT_BASE_URL: http://localhost:3101

0 commit comments

Comments
 (0)