88 name : Prepare
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
12- - name : Use Node.js
13- uses : actions/setup-node@v3
11+ - name : Checkout and setup environment
12+ uses : MetaMask/action-checkout-and-setup@v1
1413 with :
15- node-version-file : ' .nvmrc'
16- cache : ' yarn'
17- - name : Install Yarn dependencies
18- run : yarn --immutable
14+ is-high-risk-environment : false
15+ skip-allow-scripts : true
16+ cache-node-modules : true
1917
2018 build :
2119 name : Build
2220 runs-on : ubuntu-latest
2321 needs :
2422 - prepare
2523 steps :
26- - uses : actions/checkout@v3
27- - name : Use Node.js
28- uses : actions/setup-node@v3
24+ - name : Checkout and setup environment
25+ uses : MetaMask/action-checkout-and-setup@v1
2926 with :
30- node-version-file : ' .nvmrc'
31- cache : ' yarn'
32- - run : yarn --immutable --immutable-cache
27+ is-high-risk-environment : false
28+ skip-allow-scripts : true
3329 - run : yarn build
3430 - name : Require clean working directory
3531 shell : bash
@@ -45,13 +41,11 @@ jobs:
4541 needs :
4642 - prepare
4743 steps :
48- - uses : actions/checkout@v3
49- - name : Use Node.js
50- uses : actions/setup-node@v3
44+ - name : Checkout and setup environment
45+ uses : MetaMask/action-checkout-and-setup@v1
5146 with :
52- node-version-file : ' .nvmrc'
53- cache : ' yarn'
54- - run : yarn --immutable --immutable-cache
47+ is-high-risk-environment : false
48+ skip-allow-scripts : true
5549 - run : yarn lint
5650 - name : Validate RC changelog
5751 if : ${{ startsWith(github.head_ref, 'release/') }}
@@ -74,15 +68,14 @@ jobs:
7468 - prepare
7569 strategy :
7670 matrix :
77- node-version : [16.x, 18.x, 20.x]
71+ node-version : [18.x, 20.x]
7872 steps :
79- - uses : actions/checkout@v3
80- - name : Use Node.js ${{ matrix.node-version }}
81- uses : actions/setup-node@v3
73+ - name : Checkout and setup environment
74+ uses : MetaMask/action-checkout-and-setup@v1
8275 with :
76+ is-high-risk-environment : false
77+ skip-allow-scripts : true
8378 node-version : ${{ matrix.node-version }}
84- cache : ' yarn'
85- - run : yarn --immutable --immutable-cache
8679 - run : yarn test
8780 - name : Require clean working directory
8881 shell : bash
@@ -99,14 +92,14 @@ jobs:
9992 - prepare
10093 strategy :
10194 matrix :
102- node-version : [16.x, 18.x, 20.x]
95+ node-version : [18.x, 20.x]
10396 steps :
104- - uses : actions/checkout@v3
105- - name : Use Node.js ${{ matrix.node-version }}
106- uses : actions/setup-node@v3
97+ - name : Checkout and setup environment
98+ uses : MetaMask/action-checkout-and-setup@v1
10799 with :
100+ is-high-risk-environment : false
101+ skip-allow-scripts : true
108102 node-version : ${{ matrix.node-version }}
109- cache : ' yarn'
110103 - run : rm yarn.lock && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn
111104 - run : yarn test
112105 - name : Require clean working directory
0 commit comments