@@ -28,11 +28,11 @@ var_4: &save_cache
28
28
save_cache :
29
29
key : *cache_key
30
30
paths :
31
- - " node_modules"
31
+ - ' node_modules'
32
32
33
33
var_5 : &yarn_install
34
34
run :
35
- name : " Installing project dependencies"
35
+ name : ' Installing project dependencies'
36
36
command : yarn install --frozen-lockfile --non-interactive
37
37
38
38
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
@@ -58,12 +58,12 @@ jobs:
58
58
lint :
59
59
<< : *job_defaults
60
60
steps :
61
- - checkout
62
- - restore_cache :
63
- key : *cache_key
64
- - *yarn_install
65
- - run : yarn lint
66
- - *save_cache
61
+ - checkout
62
+ - restore_cache :
63
+ key : *cache_key
64
+ - *yarn_install
65
+ - run : yarn lint
66
+ - *save_cache
67
67
68
68
build :
69
69
<< : *job_defaults
@@ -72,24 +72,24 @@ jobs:
72
72
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
73
73
resource_class : large
74
74
steps :
75
- - checkout
76
- - restore_cache :
77
- key : *cache_key
78
- - *yarn_install
79
- - run : yarn prod-build
80
- - *save_cache
81
- - store_build_output
75
+ - checkout
76
+ - restore_cache :
77
+ key : *cache_key
78
+ - *yarn_install
79
+ - run : yarn prod-build
80
+ - *save_cache
81
+ - store_build_output
82
82
83
83
test :
84
84
<< : *job_defaults
85
85
steps :
86
- - checkout
87
- - browser-tools/install-chrome
88
- - restore_cache :
89
- key : *cache_key
90
- - *yarn_install
91
- - browser-tools/install-browser-tools
92
- - run : yarn test --watch false --progress=false
86
+ - checkout
87
+ - browser-tools/install-chrome
88
+ - restore_cache :
89
+ key : *cache_key
90
+ - *yarn_install
91
+ - browser-tools/install-browser-tools
92
+ - run : yarn test --watch false --progress=false
93
93
94
94
lighthouse_audits :
95
95
<< : *job_defaults
@@ -106,69 +106,77 @@ jobs:
106
106
<< : *job_defaults
107
107
resource_class : large
108
108
steps :
109
- - checkout
110
- - restore_cache :
111
- key : *cache_key
112
- - *yarn_install
113
- - run : yarn bazel build //...
114
- - *save_cache
109
+ - checkout
110
+ - restore_cache :
111
+ key : *cache_key
112
+ - *yarn_install
113
+ - run :
114
+ command : yarn bazel build //...
115
+ environment :
116
+ # TODO: Remove when pnpm is exclusively used.
117
+ ASPECT_RULES_JS_FROZEN_PNPM_LOCK : ' 1'
118
+ - *save_cache
115
119
116
120
bazel-test :
117
121
<< : *job_defaults
118
122
resource_class : large
119
123
steps :
120
- - checkout
121
- - restore_cache :
122
- key : *cache_key
123
- - *yarn_install
124
- - run : yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
125
- - *save_cache
126
- - store_artifacts :
127
- path : bazel-testlogs/
128
- - store_artifacts :
129
- path : bazel-testlogs/scenes/
124
+ - checkout
125
+ - restore_cache :
126
+ key : *cache_key
127
+ - *yarn_install
128
+ - run :
129
+ command : yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
130
+ environment :
131
+ # TODO: Remove when pnpm is exclusively used.
132
+ ASPECT_RULES_JS_FROZEN_PNPM_LOCK : ' 1'
133
+ - *save_cache
134
+ - store_artifacts :
135
+ path : bazel-testlogs/
136
+ - store_artifacts :
137
+ path : bazel-testlogs/scenes/
130
138
131
139
bazel-lint :
132
140
<< : *job_defaults
133
141
resource_class : large
134
142
steps :
135
- - checkout
136
- - restore_cache :
137
- key : *cache_key
138
- - *yarn_install
139
- - run : yarn bazel test --test_tag_filters=+lint //...
140
- - *save_cache
141
- - store_artifacts :
142
- path : bazel-testlogs/
143
- - store_artifacts :
144
- path : bazel-testlogs/scenes/
143
+ - checkout
144
+ - restore_cache :
145
+ key : *cache_key
146
+ - *yarn_install
147
+ - run : yarn bazel test --test_tag_filters=+lint //...
148
+ - *save_cache
149
+ - store_artifacts :
150
+ path : bazel-testlogs/
151
+ - store_artifacts :
152
+ path : bazel-testlogs/scenes/
145
153
146
154
bazel-lighthouse_audits :
147
155
<< : *job_defaults
148
156
resource_class : xlarge
149
157
steps :
150
- - checkout
151
- - restore_cache :
152
- key : *cache_key
153
- - *yarn_install
154
- - run : yarn bazel test --test_tag_filters=+audit //...
155
- - *save_cache
156
- - store_artifacts :
157
- path : bazel-testlogs/
158
- - store_artifacts :
159
- path : bazel-testlogs/scenes/
158
+ - checkout
159
+ - restore_cache :
160
+ key : *cache_key
161
+ - *yarn_install
162
+ - run : yarn bazel test --test_tag_filters=+audit //...
163
+ - *save_cache
164
+ - store_artifacts :
165
+ path : bazel-testlogs/
166
+ - store_artifacts :
167
+ path : bazel-testlogs/scenes/
160
168
161
169
workflows :
162
170
version : 2
163
171
default_workflow :
164
172
jobs :
165
- - lint
166
- - build
167
- - test
168
- - lighthouse_audits :
169
- requires :
170
- - build
171
- - bazel-build
172
- - bazel-test
173
- - bazel-lighthouse_audits
174
- - bazel-lint
173
+ - lint
174
+ - build
175
+ - test
176
+ - lighthouse_audits :
177
+ requires :
178
+ - build
179
+ - bazel-build
180
+ - bazel-test
181
+ - bazel-lighthouse_audits
182
+ - bazel-lint
0 commit comments