Skip to content

Commit b197d6e

Browse files
committed
chore: test against canary
1 parent 458e183 commit b197d6e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ jobs:
2828
node-version: ${{ matrix.node-version }}
2929
check-latest: true
3030
- run: npm ci
31+
name: NPM Install
3132
- name: Linting
3233
run: npm run format:ci
3334
if: "${{ matrix.node-version == '*' }}"
34-
- run: npm test
35+
- name: Run tests against next@latest
36+
run: npm test
37+
- name: Install Next.js Canary
38+
run: npm install -D next@canary
39+
- name: Run tests against next@canary
40+
run: npm test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prepublishOnly:test": "npm test",
3737
"test:plugin": "npm run build && jest",
3838
"test:src": "jest --config src/tests/jest.config.js",
39-
"test": "npm run test:plugin && npm run test:src"
39+
"test": "run-s test:plugin test:src"
4040
},
4141
"config": {
4242
"eslint": "--cache --format=codeframe --max-warnings=0 \"{src,scripts,tests,.github}/**/*.{js,md,html}\" \"*.{js,md,html}\" \".*.{js,md,html}\"",

0 commit comments

Comments
 (0)