Skip to content

Commit 43d535f

Browse files
committed
[ci] Add check_error_codes to gh actions
ghstack-source-id: b6dbee2 Pull Request resolved: #30354
1 parent c3c4ab3 commit 43d535f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/runtime_build_and_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,36 @@ jobs:
290290
./build.tgz
291291
./build2.tgz
292292
293+
check_error_codes:
294+
name: Search build artifacts for unminified errors
295+
needs: build_and_lint
296+
runs-on: ubuntu-latest
297+
steps:
298+
- uses: actions/checkout@v4
299+
- uses: actions/setup-node@v4
300+
with:
301+
node-version: 18.20.1
302+
cache: yarn
303+
cache-dependency-path: yarn.lock
304+
- name: Restore cached node_modules
305+
uses: actions/cache@v4
306+
id: node_modules
307+
with:
308+
path: "**/node_modules"
309+
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
310+
- run: yarn install --frozen-lockfile
311+
- name: Restore archived build
312+
uses: actions/download-artifact@v4
313+
with:
314+
path: build
315+
merge-multiple: true
316+
- name: Display structure of build
317+
run: ls -R build
318+
- name: Search build artifacts for unminified errors
319+
run: |
320+
yarn extract-errors
321+
git diff --quiet || (echo "Found unminified errors. Either update the error codes map or disable error minification for the affected build, if appropriate." && false)
322+
293323
check_release_dependencies:
294324
name: Check release dependencies
295325
needs: build_and_lint

0 commit comments

Comments
 (0)