mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat(build): add Cypress build integration
This commit is contained in:
parent
e6cd93afd1
commit
07147827bd
2 changed files with 8 additions and 2 deletions
7
.github/workflows/e2e.yml
vendored
7
.github/workflows/e2e.yml
vendored
|
@ -30,4 +30,9 @@ jobs:
|
||||||
- name: Build the client application
|
- name: Build the client application
|
||||||
run: yarn build --no-progress
|
run: yarn build --no-progress
|
||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
run: yarn test:e2e:ci
|
run: |
|
||||||
|
./node_modules/kill-port/cli.js 8080
|
||||||
|
./node_modules/start-server-and-test/src/bin/start.js \
|
||||||
|
'php artisan serve --port=8080 --quiet' \
|
||||||
|
8080 \
|
||||||
|
'./node_modules/cypress/bin/cypress run --record --key ${{ secrets.CYPRESS_RECORD_KEY }}'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"projectId": "t39zbg",
|
||||||
"baseUrl": "http://localhost:8080",
|
"baseUrl": "http://localhost:8080",
|
||||||
"pluginsFile": "cypress/plugins/index.ts",
|
"pluginsFile": "cypress/plugins/index.ts",
|
||||||
"viewportWidth": 1440,
|
"viewportWidth": 1440,
|
||||||
|
@ -6,5 +7,5 @@
|
||||||
"retries": {
|
"retries": {
|
||||||
"runMode": 3
|
"runMode": 3
|
||||||
},
|
},
|
||||||
"video": false
|
"video": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue