Created
March 18, 2021 06:38
-
-
Save samlucax/665f62fabd4dc31435571c0371613ac7 to your computer and use it in GitHub Desktop.
Semana Agilizei 3.0 - Workflow desenvolvido para executar os testes
This file contains hidden or 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
# action criada especialmente para o Cypress | |
- name: Cypress run | |
uses: cypress-io/[email protected] | |
with: | |
record: true | |
group: 'Semana Agilizei' | |
env: | |
# pass the Dashboard record key as an environment variable | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# upload dos vídeos gerados | |
- name: Upload videos | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: videos | |
path: cypress/videos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment