Skip to content

Commit f139139

Browse files
committed
fix(chore): add test:ci in package.json scripts
1 parent 3e80d1a commit f139139

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/cypress.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
cypress-run:
1111
concurrency:
12-
group: cypress-${{ github.head_ref || github.ref }}
12+
group: cypress-${{ github.head_ref || github.ref }}
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: checkout
@@ -28,7 +28,7 @@ jobs:
2828
- name: cypress run
2929
uses: cypress-io/github-action@v4
3030
env:
31-
PORT: 3000
31+
VITE_PORT: 3000
3232
VITE_GRAASP_API_HOST: http://localhost:3636
3333
VITE_GRAASP_APP_KEY: id-1234567890
3434
VITE_ENABLE_MOCK_API: true
@@ -38,7 +38,7 @@ jobs:
3838
install: false
3939
build: yarn build
4040
config: baseUrl=http://localhost:3000
41-
start: yarn start:ci
41+
start: yarn dev
4242
browser: chrome
4343
quiet: true
4444
# point to new cypress@10 config file

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"hooks:install": "husky install",
6363
"cypress:open": "env-cmd -f ./.env.test cypress open --browser chrome",
6464
"test": "yarn build:test && concurrently -k -s first \"yarn preview:test\" \"yarn cypress:run\"",
65+
"test:ci": "env-cmd -f ./.env.test cypress run --browser chrome --headless && nyc report --reporter=text --reporter=text-summary",
6566
"cypress:run": "env-cmd -f ./.env.test cypress run --browser chrome",
6667
"postinstall": "husky install",
6768
"cov:report": "open ./coverage/lcov-report/index.html",

0 commit comments

Comments
 (0)