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: Cypress Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14.x | |
- name: Navigate to tests directory | |
run: cd tests | |
- name: Clean npm cache | |
run: npm cache clean --force | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Cypress tests | |
run: npx cypress run |