mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[rfc] Remove top level forget directory
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
This commit is contained in:
Vendored
+1
-3
@@ -14,11 +14,9 @@ jobs:
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
cache-dependency-path: forget/yarn.lock
|
||||
cache-dependency-path: 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
|
||||
|
||||
Vendored
+6
-10
@@ -5,15 +5,15 @@ on:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- .github/workflows/**
|
||||
- forget/crates/**
|
||||
- forget/Cargo.*
|
||||
- forget/*.toml
|
||||
- crates/**
|
||||
- Cargo.*
|
||||
- ./*.toml
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/**
|
||||
- forget/crates/**
|
||||
- forget/Cargo.*
|
||||
- forget/*.toml
|
||||
- crates/**
|
||||
- Cargo.*
|
||||
- ./*.toml
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
@@ -36,7 +36,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: cargo test
|
||||
working-directory: forget
|
||||
run: cargo test --manifest-path=Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }}
|
||||
|
||||
lint:
|
||||
@@ -53,9 +52,7 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
- name: rustfmt
|
||||
run: grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --check --config="skip_children=true"
|
||||
working-directory: ./forget/
|
||||
# - name: cargo clippy
|
||||
# working-directory: forget
|
||||
# run: rustup run nightly-2023-08-01 cargo clippy -- -Dclippy::correctness
|
||||
|
||||
build:
|
||||
@@ -65,5 +62,4 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: cargo build
|
||||
working-directory: forget
|
||||
run: cargo build --release
|
||||
|
||||
+1
-4
@@ -15,15 +15,12 @@ jobs:
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
cache-dependency-path: forget/yarn.lock
|
||||
cache-dependency-path: yarn.lock
|
||||
- run: yarn install --frozen-lockfile
|
||||
working-directory: forget
|
||||
- run: yarn workspace babel-plugin-react-forget run build
|
||||
working-directory: forget
|
||||
- id: test262
|
||||
name: Run test262
|
||||
run: echo results=$(yarn --silent workspace babel-plugin-react-forget run --silent test262:ci) >> $GITHUB_OUTPUT
|
||||
working-directory: forget
|
||||
- id: format_test262_results
|
||||
name: Format test262 results
|
||||
uses: actions/github-script@v6
|
||||
|
||||
+4
-11
@@ -14,7 +14,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- id: set-matrix
|
||||
run: echo "matrix=$(find forget/packages -mindepth 1 -maxdepth 1 -type d | sed 's!forget/packages/!!g' | tr '\n' ',' | sed s/.$// | jq -Rsc '. / "," - [""]')" >> $GITHUB_OUTPUT
|
||||
run: echo "matrix=$(find packages -mindepth 1 -maxdepth 1 -type d | sed 's!packages/!!g' | tr '\n' ',' | sed s/.$// | jq -Rsc '. / "," - [""]')" >> $GITHUB_OUTPUT
|
||||
|
||||
# Hardcoded to improve parallelism for babel-plugin-react-forget
|
||||
lint:
|
||||
@@ -26,18 +26,15 @@ jobs:
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
cache-dependency-path: forget/yarn.lock
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --frozen-lockfile
|
||||
working-directory: forget
|
||||
- run: yarn workspace babel-plugin-react-forget prettier:ci
|
||||
working-directory: forget
|
||||
- run: yarn workspace babel-plugin-react-forget lint
|
||||
working-directory: forget
|
||||
|
||||
# Hardcoded to improve parallelism for babel-plugin-react-forget
|
||||
jest:
|
||||
@@ -49,7 +46,7 @@ jobs:
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
cache-dependency-path: forget/yarn.lock
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v3
|
||||
id: node_modules
|
||||
@@ -57,9 +54,7 @@ jobs:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --frozen-lockfile
|
||||
working-directory: forget
|
||||
- run: yarn workspace babel-plugin-react-forget jest
|
||||
working-directory: forget
|
||||
|
||||
test:
|
||||
name: Test ${{ matrix.workspace_name }}
|
||||
@@ -75,7 +70,7 @@ jobs:
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
cache-dependency-path: forget/yarn.lock
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v3
|
||||
id: node_modules
|
||||
@@ -83,6 +78,4 @@ jobs:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
- run: yarn install --frozen-lockfile
|
||||
working-directory: forget
|
||||
- run: yarn workspace ${{ matrix.workspace_name }} test
|
||||
working-directory: forget
|
||||
|
||||
Reference in New Issue
Block a user