[ci] Add new fizz GitHub action
Copies the existing circleci workflow for checking the inlined Fizz runtime into GitHub actions. I didn't remove the circleci job for now just to check for parity. ghstack-source-id: 09480b1a20fbdd374a6075e6ec02a07b6a516c56 Pull Request resolved: https://github.com/facebook/react/pull/30035
Lauren Tan committed
Jun 22, 2024 at 12:33 UTC
a7c5c07ed4f63348d8809fe5183819721856aa8f
1 file changed
+30
.github/workflows/fizz.yml
new
+30
@@ -0,0 +1,30 @@
1
+name: Fizz
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ paths-ignore:
8
+ - 'compiler/**'
9
+
10
+jobs:
11
+ check_generated_fizz_runtime:
12
+ name: Confirm generated inline Fizz runtime is up to date
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 18.x
19
+ cache: "yarn"
20
+ cache-dependency-path: yarn.lock
21
+ - name: Restore cached node_modules
22
+ uses: actions/cache@v4
23
+ id: node_modules
24
+ with:
25
+ path: "**/node_modules"
26
+ key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
27
+ - run: yarn install --frozen-lockfile
28
+ - run: |
29
+ yarn generate-inline-fizz-runtime
30
+ git diff --quiet || (echo "There was a change to the Fizz runtime. Run `yarn generate-inline-fizz-runtime` and check in the result." && false)