Skip to content

Setup e2e tests on CI #1

Setup e2e tests on CI

Setup e2e tests on CI #1

Workflow file for this run

name: E2E tests

Check failure on line 1 in .github/workflows/e2e-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e-tests.yml

Invalid workflow file

`e2e-tests` is not a valid event name
on:
push:
branches:
- "master"
- "release-**"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- "master"
- "release-**"
e2e-tests:
runs-on: ubuntu-22.04
timeout-minutes: 10
name: e2e-tests
env:
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.ENTERPRISE_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Run Sample App in Docker
run: |
yarn docker:up -d &&
while ! nc -z localhost 4400; do sleep 1; done
- name: Install Chrome v111
uses: browser-actions/setup-chrome@v1
with:
# https://chromium.cypress.io/linux/stable/111.0.5563.146
chrome-version: 1097615
id: setup-chrome
- name: Ensure that Cypress executable is ready
run: cd e2e && npm ci
- name: Run e2e tests
id: run-e2e-tests
run: yarn cypress:run
- name: Upload Cypress Artifacts upon failure
uses: actions/upload-artifact@v4
if: ${{ steps.run-e2e-tests.outcome != 'success' }}
with:
name: cypress-recording-latest
path: |
./e2e/cypress
if-no-files-found: ignore