mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
 This is an attempt to scaffold yarn workspaces into our repo with as minimal as possible changes to our current setup and directory structure. Essentially this PR moves current `src` into `packages/babel-plugin-react-forget` as a first step to keep everything working. Later on when we're ready we can split out a `react-compiler` package that is decoupled from Babel, but it's too early for that now
30 lines
943 B
YAML
30 lines
943 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
forget:
|
|
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 --immutable --immutable-cache
|
|
working-directory: forget
|
|
- run: yarn workspace babel-plugin-react-forget run prettier:ci
|
|
working-directory: forget
|
|
- run: yarn workspace babel-plugin-react-forget run build
|
|
working-directory: forget
|
|
- run: yarn workspace babel-plugin-react-forget run lint
|
|
working-directory: forget
|
|
- run: yarn workspace babel-plugin-react-forget run test
|
|
working-directory: forget
|
|
- run: yarn workspace babel-plugin-react-forget run snap:build && yarn workspace babel-plugin-react-forget run snap
|
|
working-directory: forget
|