-
Notifications
You must be signed in to change notification settings - Fork 5k
77 lines (65 loc) · 2.06 KB
/
e2e.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
71
72
73
74
75
76
77
on:
workflow_call:
jobs:
benchmarks-sh:
runs-on: gha-mm-scale-set-ubuntu-22.04-amd64-med
container:
image: cimg/node:22.13-browsers
steps:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ vars.USE_CACHING }}
- name: Download artifact prep-build-test-webpack
uses: actions/download-artifact@v4
with:
path: ./dist/
pattern: prep-build-test-webpack
merge-multiple: true
- name: Configure Xvfb
run: Xvfb -ac :99 -screen 0 1280x1024x16 &
- name: test:e2e:chrome:webpack
run: yarn test:e2e:chrome:webpack
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webpack-e2e
path: |
test-artifacts
test/test-results/e2e
benchmarks-ubuntu-latest:
runs-on: ubuntu-latest
container:
image: cimg/node:22.13-browsers
steps:
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@caching
with:
should-cache-restore: ${{ vars.USE_CACHING }}
- name: Download artifact prep-build-test-webpack
uses: actions/download-artifact@v4
with:
path: ./dist/
pattern: prep-build-test-webpack
merge-multiple: true
- name: Configure Xvfb
run: Xvfb -ac :99 -screen 0 1280x1024x16 &
- name: test:e2e:chrome:webpack
run: yarn test:e2e:chrome:webpack
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webpack-e2e-ubuntu-latest
path: |
test-artifacts
test/test-results/e2e