[ci] Split out babel-plugin-react-forget prettier/eslint to its own job
Lauren Tan committed
Aug 18, 2023 at 15:22 UTC
e426cb553d03526f31355999869b8f00b3f0c054
2 files changed
+23
-1
compiler/.github/workflows/typescript.yml
+22
@@ -15,6 +15,28 @@ jobs:
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
+ lint:
19
+ name: Lint babel-plugin-react-forget
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - uses: actions/setup-node@v3
24
+ with:
25
+ node-version: 18.x
26
+ cache: "yarn"
27
+ cache-dependency-path: forget/yarn.lock
28
+ - name: cache node_modules
29
+ uses: actions/cache@v3
30
+ with:
31
+ path: "**/node_modules"
32
+ key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
33
+ - run: yarn install --frozen-lockfile
34
+ working-directory: forget
35
+ - run: yarn workspace babel-plugin-react-forget prettier:ci
36
+ working-directory: forget
37
+ - run: yarn workspace babel-plugin-react-forget lint
38
+ working-directory: forget
39
+
40
test:
41
name: Test ${{ matrix.workspace_name }}
42
needs: discover_yarn_workspaces
compiler/forget/packages/babel-plugin-react-forget/package.json
+1
-1
@@ -9,7 +9,7 @@
9
],
10
"scripts": {
11
"build": "rimraf dist && tsc",
12
- "test": "concurrently -g -n prettier,eslint,jest,snap,sprout \"yarn prettier:ci\" \"yarn lint\" \"yarn jest\" \"yarn snap:ci\" \"yarn sprout:ci\"",
12
+ "test": "concurrently -g -n jest,snap,sprout \"yarn jest\" \"yarn snap:ci\" \"yarn sprout:ci\"",
13
"jest": "tsc && ts-node \"$(yarn --silent which jest)\"",
14
"snap": "node ../snap/dist/main.js",
15
"snap:build": "yarn workspace snap run build",