File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_call :
55
66jobs :
7- prepare :
8- name : Prepare
9- runs-on : ubuntu-latest
10- strategy :
11- matrix :
12- node-version : [18.x, 20.x, 22.x]
13- outputs :
14- child-workspace-package-names : ${{ steps.workspace-package-names.outputs.child-workspace-package-names }}
15- steps :
16- - name : Checkout and setup environment
17- uses : MetaMask/action-checkout-and-setup@v1
18- with :
19- is-high-risk-environment : true
20- cache-node-modules : ${{ matrix.node-version == '22.x' }}
21- - name : Fetch workspace package names
22- id : workspace-package-names
23- run : |
24- echo "child-workspace-package-names=$(yarn workspaces list --no-private --json | jq --slurp --raw-output 'map(.name) | @json')" >> "$GITHUB_OUTPUT"
25- shell : bash
26-
277 lint :
288 name : Lint (${{ matrix.script }})
299 runs-on : ubuntu-latest
30- needs : prepare
3110 strategy :
3211 matrix :
3312 node-version : [22.x]
@@ -54,17 +33,12 @@ jobs:
5433 validate-changelog :
5534 name : Validate changelog
5635 runs-on : ubuntu-latest
57- needs : prepare
58- strategy :
59- matrix :
60- node-version : [22.x]
61- package-name : ${{ fromJson(needs.prepare.outputs.child-workspace-package-names) }}
6236 steps :
6337 - name : Checkout and setup environment
6438 uses : MetaMask/action-checkout-and-setup@v1
6539 with :
6640 is-high-risk-environment : true
67- - run : yarn workspace ${{ matrix.package-name }} changelog:validate
41+ - run : yarn workspaces foreach --all --no-private --parallel run changelog:validate
6842 - name : Require clean working directory
6943 shell : bash
7044 run : |
7650 build :
7751 name : Build
7852 runs-on : ubuntu-latest
79- needs : prepare
8053 strategy :
8154 matrix :
8255 node-version : [22.x]
9770 test :
9871 name : Test
9972 runs-on : ubuntu-latest
100- needs :
101- - prepare
10273 strategy :
10374 matrix :
10475 node-version : [18.x, 20.x, 22.x]
You can’t perform that action at this time.
0 commit comments