[ci] Add new flags GitHub action
Copies the existing circleci workflow for yarn flags into GitHub actions. I didn't remove the circleci job for now just to check for parity. ghstack-source-id: 003f2a479697f7a948cf9e2420dd6954d8b1e175 Pull Request resolved: https://github.com/facebook/react/pull/30029
Lauren Tan committed
Jun 21, 2024 at 14:57 UTC
2f34bf427f1dfd6c9971c6c6882ec966a10828a3
1 file changed
+28
.github/workflows/flags.yml
new
+28
@@ -0,0 +1,28 @@
1
+name: Flags
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ paths-ignore:
8
+ - 'compiler/**'
9
+
10
+jobs:
11
+ flags:
12
+ name: Check flags
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: yarn flags