Skip to content

Commit

Permalink
modify cypress run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
muriukialex committed Feb 16, 2024
1 parent ebf9d54 commit c37c042
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jobs:
rm package-lock.json
- name: Install Dependencies
run: npm install
- name: Start app
run: npm run dev
- name: Run tests
run: npm run cypress:run
- name: Cypress e2e tests 🧪
uses: cypress-io/[email protected]
with:
start: npm run dev
wait-on: "http://localhost:3000"
browser: chrome

Deploy-Preview:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ jobs:
run: npm install
- name: Start app
run: npm run dev
- name: Run tests
run: npm run cypress:run
- name: Cypress e2e tests 🧪
uses: cypress-io/[email protected]
with:
start: npm run dev
wait-on: "http://localhost:3000"
browser: chrome

Deploy-Production:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c37c042

Please sign in to comment.