Skip to content

Commit

Permalink
ops: set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr committed Sep 28, 2023
1 parent 185f853 commit 0119d86
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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:
needs: install
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:
needs: install
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:
needs: install
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

0 comments on commit 0119d86

Please sign in to comment.