Skip to content

Commit

Permalink
Github action cypress new test
Browse files Browse the repository at this point in the history
  • Loading branch information
suissa committed Jan 16, 2024
1 parent 01339b4 commit f557df1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cypress Tests
name: End-to-End Tests

on: [push]

Expand All @@ -7,17 +7,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v1
with:
node-version: "20" # Especificar a versão do Node.js
node-version: '14'

- name: Install Dependencies
run: npm install

- name: Run Cypress Tests
run: npx cypress run --record --key 67fd9c51-6b49-446d-b8b8-d24b5d798313
- name: Start Server
run: npm start &
env:
CI: true

- name: Run Cypress Tests
uses: cypress-io/github-action@v2
with:
start: npm start
wait-on: 'http://localhost:3000'
wait-on-timeout: 60

0 comments on commit f557df1

Please sign in to comment.