@samitouri / QOS-React-1 / commits / 0477799cfb

[ci] Add new flow GitHub action

Copies the existing circleci workflow for flow into GitHub actions. I didn't remove the circleci job for now just to check for parity. ghstack-source-id: 59104902e48a2b520ea2971d99c061c74b03a1a0 Pull Request resolved: https://github.com/facebook/react/pull/30025

Lauren Tan committed Jun 21, 2024 at 12:19 UTC 0477799cfb3685c42cd6ce5ec4e171c8bcf2acfd
1 file changed +25
.github/workflows/flow.yml new
+25
@@ -0,0 +1,25 @@
1 +name: Flow
2 +
3 +on:
4 + push:
5 + branches: [main]
6 + pull_request:
7 +
8 +jobs:
9 + flow:
10 + name: Run flow
11 + runs-on: ubuntu-latest
12 + steps:
13 + - uses: actions/checkout@v4
14 + - uses: actions/setup-node@v4
15 + with:
16 + node-version: 18.x
17 + cache: "yarn"
18 + cache-dependency-path: yarn.lock
19 + - name: Restore cached node_modules
20 + uses: actions/cache@v4
21 + with:
22 + path: "**/node_modules"
23 + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
24 + - run: yarn install --frozen-lockfile
25 + - run: node ./scripts/tasks/flow-ci