Skip to content

Commit c6725c5

Browse files
committed
ci: fix test script
1 parent 8f73566 commit c6725c5

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ jobs:
2727
- uses: actions/checkout@v2
2828
- name: Installing with latest Node.js
2929
uses: actions/setup-node@v2
30-
if: "${{ matrix.node-version != '*' }}"
3130
with:
3231
node-version: '*'
3332
check-latest: true
3433
- name: NPM Install
35-
run: npm ci
34+
run: npm install
3635
- name: Switching to Node.js ${{ matrix.node-version }} to run tests
3736
uses: actions/setup-node@v2
3837
if: "${{ matrix.node-version != '*' }}"
@@ -64,12 +63,11 @@ jobs:
6463
- uses: actions/checkout@v2
6564
- name: Installing with latest Node.js
6665
uses: actions/setup-node@v2
67-
if: "${{ matrix.node-version != '*' }}"
6866
with:
6967
node-version: '*'
7068
check-latest: true
7169
- name: NPM Install
72-
run: npm ci
70+
run: npm install
7371
- name: Install Next.js Canary
7472
run: npm install -D next@canary --legacy-peer-deps
7573
- name: Switching to Node.js ${{ matrix.node-version }} to run tests

demos/default/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"description": "",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"build": "next build"
88
},
99
"repository": {
1010
"type": "git",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"description": "Run Next.js seamlessly on Netlify",
55
"scripts": {
6-
"build:demo": "next build demos/default",
6+
"build:demo": "npm run -w default-demo build",
77
"cy:open": "cypress open --config-file cypress/config/all.json",
88
"dev:demo": "next dev demos/default",
99
"format": "run-s format:check-fix:*",

0 commit comments

Comments
 (0)