diff --git a/compiler/.github/workflows/ci.yml b/compiler/.github/workflows/ci.yml index 37642e4a0b..8ba0d5a241 100644 --- a/compiler/.github/workflows/ci.yml +++ b/compiler/.github/workflows/ci.yml @@ -6,8 +6,23 @@ on: pull_request: jobs: - forget: + discover_yarn_workspaces: runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + 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 + + forget: + name: Test ${{ matrix.workspace_name }} + needs: discover_yarn_workspaces + runs-on: ubuntu-latest + continue-on-error: true + strategy: + matrix: + workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -22,5 +37,5 @@ jobs: key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - run: yarn install --frozen-lockfile working-directory: forget - - run: yarn test + - run: yarn workspace ${{ matrix.workspace_name }} test working-directory: forget diff --git a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts index 22a1c16502..bfda9a6312 100644 --- a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts +++ b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts @@ -13,7 +13,7 @@ import ReactForgetBabelPlugin, { type CompilerError, type CompilerErrorDetail, type PluginOptions, -} from "babel-plugin-react-forget"; +} from "babel-plugin-react-forget/src"; import type { Rule } from "eslint"; import * as HermesParser from "hermes-parser"; diff --git a/compiler/forget/packages/js-fuzzer/package.json b/compiler/forget/packages/js-fuzzer/package.json index 13d5c62433..ef9af17d05 100644 --- a/compiler/forget/packages/js-fuzzer/package.json +++ b/compiler/forget/packages/js-fuzzer/package.json @@ -1,5 +1,5 @@ { - "name": "ochang_js_fuzzer", + "name": "js-fuzzer", "version": "1.0.0", "description": "", "main": "run.js",