-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (44 loc) · 1.43 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: E2E Tests
on: push
jobs:
test:
permissions: write-all
timeout-minutes: 20
runs-on: ubuntu-latest-m
env:
FLEXTESA_IMAGE: oxheadalpha/flextesa:latest
TZKT_SYNC_IMAGE: bakingbad/tzkt-sync:1.13.1
TZKT_API_IMAGE: serjonya/tzkt-api:1.13.1-linux
steps:
- uses: actions/checkout@v4
- name: Setup yarn
run: |
corepack enable
yarn set version stable
- uses: actions/setup-node@v4
with:
node-version: 20.11.x
cache: "yarn"
- name: Pull docker images
run: docker compose pull --quiet &
- name: Install dependencies
run: yarn install --immutable
- name: Install Playwright Browsers & build the app
run: yarn exec concurrently "yarn playwright install chromium --with-deps" "yarn build"
- name: Start server
run: yarn exec http-server build -p 3000 &
- name: Run cucumber tests
run: yarn test:e2e
- name: Cucumber Report to Annotations
uses: deblockt/[email protected]
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
path: "test-results/cucumber-report.json"
show-global-summary-report: true
- uses: actions/upload-artifact@v4
if: always()
with:
name: cucumber-report
path: test-results/cucumber-report.html
retention-days: 10