-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.21 KB
/
e2e-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: E2E tests
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