15
15
merge_group :
16
16
17
17
jobs :
18
+ prep-deps :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Checkout and setup environment
22
+ uses : metamask/github-tools/.github/actions/checkout-and-setup@1299bb1de0c6974ae6d0a32c7e8897fe168239ac
23
+ with :
24
+ is-high-risk-environment : false
25
+ cache-node-modules : ' true'
26
+
18
27
lint-workflows :
19
28
name : Lint workflows
20
- uses : metamask/github-tools/.github/workflows/lint-workflows.yml@1d657e262aea7e3f216754febb624831527d2565
21
-
22
- test-lint-shellcheck :
23
- name : Test lint shellcheck
24
- uses : ./.github/workflows/test-lint-shellcheck.yml
29
+ uses : metamask/github-tools/.github/workflows/lint-workflows.yml@1299bb1de0c6974ae6d0a32c7e8897fe168239ac
25
30
26
31
test-lint :
27
- name : Test lint
32
+ needs : prep-deps
28
33
uses : ./.github/workflows/test-lint.yml
29
34
30
35
test-circular-deps :
31
36
name : Test circular deps
37
+ needs : prep-deps
32
38
runs-on : ubuntu-latest
33
39
steps :
34
- - name : Checkout repository
35
- uses : actions/checkout@v4
36
-
37
- - name : Setup environment
38
- uses : metamask/github-tools/.github/actions/setup-environment@1d657e262aea7e3f216754febb624831527d2565
40
+ - name : Checkout and setup environment
41
+ uses : metamask/github-tools/.github/actions/checkout-and-setup@1299bb1de0c6974ae6d0a32c7e8897fe168239ac
42
+ with :
43
+ is-high-risk-environment : false
39
44
40
45
- name : Check circular dependencies
41
46
run : yarn circular-deps:check
42
47
43
- test-lint-changelog :
44
- name : Test lint changelog
45
- uses : ./.github/workflows/test-lint-changelog.yml
46
-
47
- test-lint-lockfile :
48
- name : Test lint lockfile
49
- uses : ./.github/workflows/test-lint-lockfile.yml
50
-
51
- test-deps-audit :
52
- name : Test deps audit
53
- uses : ./.github/workflows/test-deps-audit.yml
54
-
55
- test-yarn-dedupe :
56
- name : Test yarn dedupe
57
- uses : ./.github/workflows/test-yarn-dedupe.yml
58
-
59
- test-deps-depcheck :
60
- name : Test deps depcheck
61
- uses : ./.github/workflows/test-deps-depcheck.yml
48
+ repository-health-checks :
49
+ needs : prep-deps
50
+ uses : ./.github/workflows/repository-health-checks.yml
62
51
63
52
test-storybook :
64
53
name : Test storybook
54
+ needs : prep-deps
65
55
uses : ./.github/workflows/test-storybook.yml
66
56
67
- validate-lavamoat-allow-scripts :
68
- name : Validate lavamoat allow scripts
69
- uses : ./.github/workflows/validate-lavamoat-allow-scripts.yml
70
-
71
57
validate-lavamoat-policy-build :
72
- name : Validate lavamoat policy build
58
+ needs : prep-deps
73
59
uses : ./.github/workflows/validate-lavamoat-policy-build.yml
74
60
75
61
validate-lavamoat-policy-webapp :
76
- name : Validate lavamoat policy webapp
62
+ needs : prep-deps
77
63
uses : ./.github/workflows/validate-lavamoat-policy-webapp.yml
78
64
79
65
prep-build-test-browserify :
66
+ needs : prep-deps
80
67
runs-on : ubuntu-latest
81
68
steps :
82
- - name : Checkout repository
83
- uses : actions/checkout@v4
84
-
85
- - name : Setup environment
86
- uses : metamask/github-tools/.github/actions/setup-environment@1d657e262aea7e3f216754febb624831527d2565
69
+ - name : Checkout and setup environment
70
+ uses : metamask/github-tools/.github/actions/checkout-and-setup@1299bb1de0c6974ae6d0a32c7e8897fe168239ac
71
+ with :
72
+ is-high-risk-environment : false
87
73
88
74
- run : yarn build:test
89
75
@@ -94,13 +80,13 @@ jobs:
94
80
path : ./dist/
95
81
96
82
prep-build-test-webpack :
83
+ needs : prep-deps
97
84
runs-on : ubuntu-latest
98
85
steps :
99
- - name : Checkout repository
100
- uses : actions/checkout@v4
101
-
102
- - name : Setup environment
103
- uses : metamask/github-tools/.github/actions/setup-environment@1d657e262aea7e3f216754febb624831527d2565
86
+ - name : Checkout and setup environment
87
+ uses : metamask/github-tools/.github/actions/checkout-and-setup@1299bb1de0c6974ae6d0a32c7e8897fe168239ac
88
+ with :
89
+ is-high-risk-environment : false
104
90
105
91
- run : yarn webpack --test --no-lavamoat --no-cache --browser=chrome --lockdown --sentry --snow --env production
106
92
env :
@@ -114,6 +100,7 @@ jobs:
114
100
115
101
run-tests :
116
102
name : Run tests
103
+ needs : prep-deps
117
104
uses : ./.github/workflows/run-tests.yml
118
105
119
106
run-benchmarks :
@@ -171,14 +158,9 @@ jobs:
171
158
runs-on : ubuntu-latest
172
159
needs :
173
160
- lint-workflows
174
- - test-lint-shellcheck
175
161
- test-lint
176
- - test-lint-changelog
177
- - test-lint-lockfile
178
- - test-yarn-dedupe
179
- - test-deps-depcheck
162
+ - repository-health-checks
180
163
- test-storybook
181
- - validate-lavamoat-allow-scripts
182
164
- validate-lavamoat-policy-build
183
165
- validate-lavamoat-policy-webapp
184
166
- run-tests
0 commit comments