module and test #4
Workflow file for this run
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 with Dependency and Artifact Caching | |
on: [push, pull_request] | |
jobs: | |
install: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress install | |
uses: cypress-io/github-action@v6 | |
with: | |
# Disable running of tests within install job | |
runTests: false | |
build: npm run build | |
- name: Save build folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
if-no-files-found: error | |
path: build | |
cypress-run: | |
runs-on: ubuntu-22.04 | |
needs: install | |
strategy: | |
# don't fail the entire matrix on failure | |
fail-fast: false | |
matrix: | |
# run copies of the current job in parallel | |
containers: [1, 2, 3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download the build folder | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: build | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm start | |
parallel: true | |
group: 'UI-Chrome' | |
browser: chrome |