Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8403b7b

Browse files
committedMar 5, 2025
Setup e2e tests on CI
1 parent 4b5c83a commit 8403b7b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
 

‎.github/workflows/e2e-tests.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: E2E tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "release-**"
8+
pull_request:
9+
types: [opened, synchronize, reopened, ready_for_review]
10+
branches:
11+
- "master"
12+
- "release-**"
13+
14+
e2e-tests:
15+
runs-on: ubuntu-22.04
16+
timeout-minutes: 10
17+
name: e2e-tests
18+
env:
19+
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.ENTERPRISE_TOKEN }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Run Sample App in Docker
25+
run: |
26+
yarn docker:up -d &&
27+
while ! nc -z localhost 4400; do sleep 1; done
28+
29+
- name: Install Chrome v111
30+
uses: browser-actions/setup-chrome@v1
31+
with:
32+
# https://chromium.cypress.io/linux/stable/111.0.5563.146
33+
chrome-version: 1097615
34+
id: setup-chrome
35+
36+
- name: Ensure that Cypress executable is ready
37+
run: cd e2e && npm ci
38+
39+
- name: Run e2e tests
40+
id: run-e2e-tests
41+
run: yarn cypress:run
42+
43+
- name: Upload Cypress Artifacts upon failure
44+
uses: actions/upload-artifact@v4
45+
if: ${{ steps.run-e2e-tests.outcome != 'success' }}
46+
with:
47+
name: cypress-recording-latest
48+
path: |
49+
./e2e/cypress
50+
if-no-files-found: ignore

0 commit comments

Comments
 (0)
Please sign in to comment.