Skip to content

Commit

Permalink
fix: cypress run at github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadbitcoin committed Nov 19, 2024
1 parent 5bfed42 commit 22db634
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 56 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/cypress-test.yml

This file was deleted.

15 changes: 14 additions & 1 deletion .github/workflows/jest-test.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,26 @@ jobs:
- name: Seed Database
run: yarn seed

- name: Run Frontend Tests
- name: Run Jest Tests
run: yarn test --ci --watchAll=false --silent

- name: Cypress:Start the development server
run: PORT=3000 yarn dev & echo $! > frontend_pid.txt

- name: Cypress:Wait for Frontend to be Ready
run: npx wait-on http://localhost:3000

- name: Cypress:Run Tests
run: yarn test:cypress

- name: Stop Emulator
run: kill $(cat emulator_pid.txt)
if: always()

- name: Stop Front
run: kill $(cat frontend_pid.txt)
if: always()

- name: Install Backend Dependencies
run: |
cd functions
Expand Down

0 comments on commit 22db634

Please sign in to comment.