@samitouri / QOS-React-1 / commits / 9e332ee05a

[ci] Run yarn workspace tests in parallel

Lauren Tan committed Aug 18, 2023 at 14:10 UTC 9e332ee05aa623ef7a146a6f275878e7a507bd13
3 files changed +18 -3
compiler/.github/workflows/ci.yml
+16 -1
@@ -6,8 +6,23 @@ on:
6 pull_request:
7
8 jobs:
9 + discover_yarn_workspaces:
10 + runs-on: ubuntu-latest
11 + outputs:
12 + matrix: ${{ steps.set-matrix.outputs.matrix }}
13 + steps:
14 + - uses: actions/checkout@v3
15 + - id: set-matrix
16 + 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
17 +
18 forget:
19 + name: Test ${{ matrix.workspace_name }}
20 + needs: discover_yarn_workspaces
21 runs-on: ubuntu-latest
22 + continue-on-error: true
23 + strategy:
24 + matrix:
25 + workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }}
26 steps:
27 - uses: actions/checkout@v3
28 - uses: actions/setup-node@v3
@@ -22,5 +37,5 @@ jobs:
37 key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
38 - run: yarn install --frozen-lockfile
39 working-directory: forget
25 - - run: yarn test
40 + - run: yarn workspace ${{ matrix.workspace_name }} test
41 working-directory: forget
compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts
+1 -1
@@ -13,7 +13,7 @@ import ReactForgetBabelPlugin, {
13 type CompilerError,
14 type CompilerErrorDetail,
15 type PluginOptions,
16 -} from "babel-plugin-react-forget";
16 +} from "babel-plugin-react-forget/src";
17 import type { Rule } from "eslint";
18 import * as HermesParser from "hermes-parser";
19
compiler/forget/packages/js-fuzzer/package.json
+1 -1
@@ -1,5 +1,5 @@
1 {
2 - "name": "ochang_js_fuzzer",
2 + "name": "js-fuzzer",
3 "version": "1.0.0",
4 "description": "",
5 "main": "run.js",