Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate installation and test execution of Cypress tests #777

Merged
merged 7 commits into from
Aug 11, 2023
32 changes: 31 additions & 1 deletion .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,46 @@ on:
workflow_dispatch:

jobs:
install-cypress:
runs-on: ubuntu-20.04
steps:
- name: checkout
id: checkout
uses: actions/checkout@v3

- name: Install Cypress
id: install-cypress
uses: cypress-io/github-action@v5
with:
runTests: false
build: yarn build-share

- name: Save build artifacts
id: build-artifacts
uses: actions/upload-artifact@v3
with:
name: build
if-no-files-found: error
path: docs/

run-cypress:
runs-on: ubuntu-20.04
needs: install-cypress
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v3

- name: Restore build artifacts
id: restore-artifacts
uses: actions/download-artifact@v3
with:
name: build
path: docs/

- name: E2E Tests on Google Chrome
id: e2e-on-google-chrome
uses: cypress-io/github-action@v5
with:
browser: chrome
build: yarn build-share
start: node config/serve.js