You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lint_build job already checks for unminified errors, but the output
isn't super helpful.
Instead I've added a new job that runs the extract-errors script and
fails the build if `codes.json` changes. It also outputs the expected
diff so you can easily see which messages were missing from the map.
Copy file name to clipboardExpand all lines: .circleci/config.yml
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,20 @@ jobs:
209
209
- run: yarn workspaces info | head -n -1 > workspace_info.txt
210
210
- *restore_node_modules
211
211
- run: yarn lint-build
212
-
- run: scripts/circleci/check_minified_errors.sh
212
+
213
+
check_error_codes:
214
+
docker: *docker
215
+
environment: *environment
216
+
steps:
217
+
- checkout
218
+
- attach_workspace: *attach_workspace
219
+
- run: yarn workspaces info | head -n -1 > workspace_info.txt
220
+
- *restore_node_modules
221
+
- run:
222
+
name: Search build artifacts for unminified errors
223
+
command: |
224
+
yarn extract-errors2
225
+
git diff || (echo "Found unminified errors. Either update the error codes map or disable error minification for the affected build, if appropriate." && false)
0 commit comments