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 593497d

Browse files
committedMar 5, 2025·
Setup e2e tests on CI
1 parent 4b5c83a commit 593497d

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
 

‎.github/workflows/e2e-tests.yml

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

0 commit comments

Comments
 (0)
Please sign in to comment.