File tree 1 file changed +51
-0
lines changed
1 file changed +51
-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
+ yarn docker:up -d &&
28
+ while ! nc -z localhost 4400; do sleep 1; done
29
+
30
+ - name : Install Chrome v111
31
+ uses : browser-actions/setup-chrome@v1
32
+ with :
33
+ # https://chromium.cypress.io/linux/stable/111.0.5563.146
34
+ chrome-version : 1097615
35
+ id : setup-chrome
36
+
37
+ - name : Ensure that Cypress executable is ready
38
+ run : cd e2e && npm ci
39
+
40
+ - name : Run e2e tests
41
+ id : run-e2e-tests
42
+ run : yarn cypress:run
43
+
44
+ - name : Upload Cypress Artifacts upon failure
45
+ uses : actions/upload-artifact@v4
46
+ if : ${{ steps.run-e2e-tests.outcome != 'success' }}
47
+ with :
48
+ name : cypress-recording-latest
49
+ path : |
50
+ ./e2e/cypress
51
+ if-no-files-found : ignore
You can’t perform that action at this time.
0 commit comments