Skip to content

Commit c9640b9

Browse files
committed
Check in CI if generated Fizz runtime is in sync
The generated Fizz runtime is checked into source. In CI, we'll ensure it stays in sync by running the script and confirming nothing changed.
1 parent e128798 commit c9640b9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,19 @@ jobs:
367367
command: |
368368
yarn extract-errors
369369
git diff --quiet || (echo "Found unminified errors. Either update the error codes map or disable error minification for the affected build, if appropriate." && false)
370+
371+
check_generated_fizz_runtime:
372+
docker: *docker
373+
environment: *environment
374+
steps:
375+
- checkout
376+
- attach_workspace: *attach_workspace
377+
- *restore_node_modules
378+
- run:
379+
name: Confirm generated inline Fizz runtime is up to date
380+
command: |
381+
yarn generate-inline-fizz-runtime
382+
git diff --quiet || (echo "There was a change to the Fizz runtime. Run `yarn generate-inline-fizz-runtime` and check in the result." && false)
370383
371384
yarn_test:
372385
docker: *docker
@@ -494,6 +507,9 @@ workflows:
494507
- sync_reconciler_forks:
495508
requires:
496509
- setup
510+
- check_generated_fizz_runtime:
511+
requires:
512+
- setup
497513
- yarn_lint:
498514
requires:
499515
- setup

0 commit comments

Comments
 (0)