Skip to content

ops: set up CI

ops: set up CI #1

Workflow file for this run

# 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