feat(build): add Cypress build integration

This commit is contained in:
Phan An 2021-01-03 20:41:14 +01:00
parent e6cd93afd1
commit 07147827bd
2 changed files with 8 additions and 2 deletions

View file

@ -30,4 +30,9 @@ jobs:
- name: Build the client application
run: yarn build --no-progress
- 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 }}'

View file

@ -1,4 +1,5 @@
{
"projectId": "t39zbg",
"baseUrl": "http://localhost:8080",
"pluginsFile": "cypress/plugins/index.ts",
"viewportWidth": 1440,
@ -6,5 +7,5 @@
"retries": {
"runMode": 3
},
"video": false
"video": true
}