Skip to content

Commit 6bfd871

Browse files
mrstorkpieh
andauthored
fix: use next version in smoke tests (#547)
* fix: use next version in smoke tests * test: update react rc version --------- Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
1 parent b2a2362 commit 6bfd871

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,19 @@ jobs:
208208
run: |
209209
npm i -g netlify-cli
210210
netlify login
211+
- name: Resolve Next.js version
212+
id: resolve-next-version
213+
shell: bash
214+
run: |
215+
RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
216+
echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
217+
echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
211218
- name: 'Smoke tests'
212219
run: npm run test:ci:smoke
213220
env:
214221
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
222+
NEXT_VERSION: ${{ matrix.version }}
223+
NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
215224

216225
merge-reports:
217226
if: always()

tests/utils/next-version-helpers.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import { readFile, writeFile } from 'node:fs/promises'
44

55
import fg from 'fast-glob'
6-
import { valid, satisfies, gte } from 'semver'
6+
import { gte, satisfies, valid } from 'semver'
77

88
const FUTURE_NEXT_PATCH_VERSION = '14.999.0'
99

1010
const NEXT_VERSION_REQUIRES_REACT_19 = '14.3.0-canary.45'
1111
// TODO: Update this when React 19 is released
12-
const REACT_19_VERSION = '19.0.0-rc-3f1436cca1-20240516'
12+
const REACT_19_VERSION = '19.0.0-rc-f994737d14-20240522'
1313
const REACT_18_VERSION = '18.2.0'
1414

1515
/**

0 commit comments

Comments
 (0)