ops: set up CI #1
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
# https://docs.cypress.io/guides/continuous-integration/github-actions | |
name: Cypress integration tests | |
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 build folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
if-no-files-found: error | |
path: build | |
cypress-run: | |
runs-on: ubuntu-22.04 | |
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 (browser: default electron)" | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build | |
start: npm start | |
cypress-run-chrome: | |
runs-on: ubuntu-22.04 | |
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 (browser: Chrome)" | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build | |
start: npm start | |
browser: chrome | |
cypress-run-edge: | |
runs-on: ubuntu-22.04 | |
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 (browser: Edge)" | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build | |
start: npm start | |
browser: edge |