Skip to content

Commit a7c5c07

Browse files
committed
[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: 09480b1 Pull Request resolved: #30035
1 parent 917585d commit a7c5c07

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/fizz.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

0 commit comments

Comments
 (0)