Merge branch 'main' into e2e-testing #12
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 | |
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 out folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: out | |
if-no-files-found: error | |
path: out | |
cypress-run: | |
runs-on: ubuntu-22.04 | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download the out folder | |
uses: actions/download-artifact@v3 | |
with: | |
name: out | |
path: out | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run dev | |
browser: chrome |