File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments