Skip to content

Commit 5fd4d59

Browse files
committed
fix: cypress run at github workflow
1 parent 5bfed42 commit 5fd4d59

File tree

2 files changed

+14
-56
lines changed

2 files changed

+14
-56
lines changed

.github/workflows/cypress-test.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/jest-test.yml renamed to .github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,26 @@ jobs:
2727
- name: Seed Database
2828
run: yarn seed
2929

30-
- name: Run Frontend Tests
30+
- name: Run Jest Tests
3131
run: yarn test --ci --watchAll=false --silent
3232

33+
- name: Cypress:Start the development server
34+
run: yarn dev & echo $! > frontend_pid.txt
35+
36+
- name: Cypress:Check if Frontend is running
37+
run: yarn wait-on http://localhost:3000 --timeout 30000
38+
39+
- name: Cypress:Run Tests
40+
run: yarn test:cypress
41+
3342
- name: Stop Emulator
3443
run: kill $(cat emulator_pid.txt)
3544
if: always()
3645

46+
- name: Stop Front
47+
run: kill $(cat frontend_pid.txt)
48+
if: always()
49+
3750
- name: Install Backend Dependencies
3851
run: |
3952
cd functions

0 commit comments

Comments
 (0)