Incluindo link público de execução no browserstack #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests e2e | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
inputs: | |
spec: | |
description: Executar testes em modo headless por spec | |
default: cypress/** | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run test | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |