File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-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+ - " *-stable"
8+ pull_request :
9+ types : [opened, synchronize, reopened, ready_for_review]
10+ branches :
11+ - " *-stable"
12+
13+ jobs :
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+ permissions :
21+ id-token : write
22+ contents : read
23+
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - name : Run Sample App in Docker
28+ run : |
29+ cp .env.docker.example .env.docker &&
30+ npm run docker:up -d &&
31+ while ! nc -z localhost 4400; do sleep 1; done
32+
33+ - name : Install Chrome v111
34+ uses : browser-actions/setup-chrome@v1
35+ with :
36+ # https://chromium.cypress.io/linux/stable/111.0.5563.146
37+ chrome-version : 1097615
38+ id : setup-chrome
39+
40+ - name : Ensure that Cypress executable is ready
41+ run : npm ci --prefix e2e
42+
43+ - name : Run e2e tests
44+ id : run-e2e-tests
45+ run : cd e2e && npm run cypress:run
46+
47+ - name : Upload Cypress Artifacts upon failure
48+ uses : actions/upload-artifact@v4
49+ if : ${{ steps.run-e2e-tests.outcome != 'success' }}
50+ with :
51+ name : cypress-recording-latest
52+ path : |
53+ ./e2e/cypress
54+ if-no-files-found : ignore
You can’t perform that action at this time.
0 commit comments