-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (56 loc) · 1.51 KB
/
e2e-tests.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: E2E Tests
on:
pull_request:
paths:
- 'e2e/**'
workflow_dispatch:
jobs:
docker-build-e2e:
runs-on: ubuntu-20.04
steps:
- name: Delete unnecessary tools folder to free space
run: rm -rf /opt/hostedtoolcache
- name: Checkout
uses: actions/checkout@v4
- name: Build E2E Docker Image
uses: ./.github/actions/docker-build-e2e
with:
name: oisy-e2e-image
e2e:
runs-on: ubuntu-latest
needs: docker-build-e2e
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download E2E Docker image artifact
uses: actions/download-artifact@v4
with:
name: oisy-e2e-image
path: .
- name: Load Docker image
run: |
gzip -d oisy-e2e-image.tar.gz
docker load -i oisy-e2e-image.tar
- name: Run E2E Docker container
run: |
docker run -d -p 4943:4943 --name oisy-e2e-container oisy-e2e-image:latest
- name: Prepare
uses: ./.github/actions/prepare
- name: Test
run: npm run e2e:ci
- uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Cleanup Docker container
run: |
docker stop oisy-e2e-container
docker rm oisy-e2e-container
may-merge:
needs: ['e2e']
runs-on: ubuntu-latest
steps:
- name: Cleared for merging
run: echo OK