Skip to content

Commit

Permalink
test(ci): add cypress command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie committed Feb 14, 2023
1 parent 728c7fb commit 22a6071
Show file tree
Hide file tree
Showing 3 changed files with 12,580 additions and 18,114 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ jobs:
run: npm ci
- name: Build
run: npx turbo format:check lint:check test build
- name: Cypress.io
# uses: cypress-io/github-action@ca3f666049f4ac2267a75de769535a7cbdc7bfd7
uses: cypress-io/github-action@v5.0.8
with:
install: false
working-directory: ./server/apps/frontend
wait-on: 'http://localhost:3000'
start: npm run start:server:local
7 changes: 2 additions & 5 deletions server/apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@
"scripts": {
"dev": "vite build --watch",
"build": "vite build",
"start:test": "vite",
"cy:run": "cypress run",
"test:bdd": "start-server-and-test start http://localhost:3030 cy:run",
"start:server:local": "vite",
"test:e2e": "cypress open",
"test": "vitest",
"de": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test start http://localhost:3000/ cy:run",
"cypress:open": "cypress open",
"format:check": "prettier --list-different src",
"format:fix": "prettier --write src",
"lint:check": "eslint src",
Expand Down
Loading

0 comments on commit 22a6071

Please sign in to comment.