Skip to content

Commit 0392a4b

Browse files
authored
chore: add swc at next version in e2e tests (#82)
1 parent 8f3799c commit 0392a4b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/test-e2e.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
NODE_VERSION: 18.16.1
1010
PNPM_VERSION: 8.7.1
1111
NEXT_REPO: netlify/next.js
12-
NEXT_VERSION: netlify-testing
12+
NEXT_VERSION: 13.5.1
1313
NEXT_TEST_MODE: deploy
1414
NEXT_E2E_TEST_TIMEOUT: 600000
1515
NEXT_TEST_JOB: true
@@ -24,7 +24,9 @@ env:
2424

2525
jobs:
2626
test-e2e:
27-
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') }}
27+
if:
28+
${{ github.event_name == 'workflow_dispatch' ||
29+
contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') }}
2830
name: test e2e
2931
runs-on: ubuntu-latest
3032
timeout-minutes: 25
@@ -55,7 +57,7 @@ jobs:
5557
with:
5658
repository: ${{ env.NEXT_REPO }}
5759
token: ${{ steps.token.outputs.token }}
58-
ref: ${{ env.NEXT_VERSION }}
60+
ref: netlify-testing-${{ env.NEXT_VERSION }}
5961
path: ${{ env.next-path }}
6062

6163
- name: checkout runtime repo
@@ -103,6 +105,10 @@ jobs:
103105
run: pnpm build
104106
working-directory: ${{ env.next-path }}
105107

108+
- name: install swc
109+
run: pnpm add @next/swc-linux-x64-gnu@${{ env.NEXT_VERSION }}
110+
working-directory: ${{ env.next-path }}
111+
106112
- name: install runtime
107113
run: npm install --ignore-scripts
108114
working-directory: ${{ env.runtime-path }}

0 commit comments

Comments
 (0)