Skip to content

Instantly share code, notes, and snippets.

@samlucax
Created March 18, 2021 06:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samlucax/665f62fabd4dc31435571c0371613ac7 to your computer and use it in GitHub Desktop.
Save samlucax/665f62fabd4dc31435571c0371613ac7 to your computer and use it in GitHub Desktop.
Semana Agilizei 3.0 - Workflow desenvolvido para executar os testes
# 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/github-action@v2.8.2
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/upload-artifact@v2.2.0
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