Files
react/compiler/.github/workflows/react.yml
Lauren Tan 20b175fcd5 [ci] Pass correct flags to yarn install
Turns out `--immutable` and `--immutable-cache` are for yarn 2, yarn 1.x needs 
to use the `--frozen-lockfile` flag instead
2023-07-27 11:06:29 -04:00

26 lines
616 B
YAML

name: react
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
cache-dependency-path: forget/yarn.lock
- run: yarn install --frozen-lockfile
working-directory: forget
- run: yarn workspace babel-plugin-react-forget run build
working-directory: forget
- run: yarn install --frozen-lockfile
working-directory: react
- run: yarn test --ci
working-directory: react