Skip to content

Commit

Permalink
feat: Adicionando novas execuções
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardopadilha committed Oct 30, 2024
1 parent c8c1d56 commit 692370b
Show file tree
Hide file tree
Showing 15 changed files with 77 additions and 75 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/01_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests e2e com relatorio

on:
workflow_dispatch:

push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Cypress run
run: npm run terminal

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: relatorio-de-testes
path: cypress/reports/html

env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
37 changes: 37 additions & 0 deletions .github/workflows/02_deploy_informacoes_cypress_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy das informacoes no cypress cloud

on:
workflow_run:
workflows: ['Tests e2e']
types:
- completed

push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run terminal # Salva as informações no cypress cloud
record: false

env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Tests e2e
name: Execucao agendada

on:
workflow_dispatch:
schedule:
- cron: '0 21 * * 3'

push:
branches: ['main']
Expand Down
Binary file not shown.
Binary file not shown.
14 changes: 0 additions & 14 deletions cypress/reports/html/assets/app.css

This file was deleted.

2 changes: 0 additions & 2 deletions cypress/reports/html/assets/app.js

This file was deleted.

55 changes: 0 additions & 55 deletions cypress/reports/html/assets/app.js.LICENSE.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions cypress/reports/html/index.html

This file was deleted.

0 comments on commit 692370b

Please sign in to comment.