File tree 5 files changed +59
-36
lines changed
actions/setup-environment
5 files changed +59
-36
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup environment
2
+ description : Setup environment
3
+ runs :
4
+ using : composite
5
+ steps :
6
+ - run : corepack enable
7
+ shell : bash
8
+
9
+ - name : Set up Node.js
10
+ uses : actions/setup-node@v4
11
+ with :
12
+ node-version-file : .nvmrc
13
+ cache : yarn
14
+
15
+ - name : Install dependencies
16
+ run : yarn --immutable
17
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Add team label
2
+
3
+ on :
4
+ workflow_call :
5
+ secrets :
6
+ PERSONAL_ACCESS_TOKEN :
7
+ required : true
8
+
9
+ jobs :
10
+ add-team-label :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Setup environment
17
+ uses : metamask/github-tools/.github/actions/setup-environment@main
18
+
19
+ - name : Add team label
20
+ env :
21
+ PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
22
+ run : yarn run add-team-label
Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- prepare :
8
- name : Prepare
9
- runs-on : ubuntu-latest
10
- steps :
11
- - uses : actions/checkout@v3
12
- - name : Use Node.js
13
- uses : actions/setup-node@v3
14
- with :
15
- node-version-file : ' .nvmrc'
16
- cache : ' yarn'
17
- - name : Install Yarn dependencies
18
- run : yarn --immutable
19
-
20
7
lint :
21
- name : Lint
22
8
runs-on : ubuntu-latest
23
- needs :
24
- - prepare
25
9
steps :
26
- - uses : actions/checkout@v3
27
- - name : Use Node.js
28
- uses : actions/setup-node@v3
29
- with :
30
- node-version-file : ' .nvmrc'
31
- cache : ' yarn'
32
- - run : yarn --immutable --immutable-cache
10
+ - name : Checkout repository
11
+ uses : actions/checkout@v4
12
+
13
+ - name : Setup environment
14
+ uses : ./.github/actions/setup-environment
15
+
33
16
- run : yarn lint
17
+
34
18
- name : Require clean working directory
35
19
shell : bash
36
20
run : |
@@ -40,19 +24,16 @@ jobs:
40
24
fi
41
25
42
26
test :
43
- name : Test
44
27
runs-on : ubuntu-latest
45
- needs :
46
- - prepare
47
28
steps :
48
- - uses : actions/checkout@v3
49
- - name : Use Node.js
50
- uses : actions/setup-node@v3
51
- with :
52
- node-version-file : ' .nvmrc'
53
- cache : ' yarn'
54
- - run : yarn --immutable --immutable-cache
29
+ - name : Checkout repository
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Setup environment
33
+ uses : ./.github/actions/setup-environment
34
+
55
35
- run : yarn test
36
+
56
37
- name : Require clean working directory
57
38
shell : bash
58
39
run : |
Original file line number Diff line number Diff line change @@ -10,11 +10,14 @@ jobs:
10
10
name : Check workflows
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
14
16
- name : Download actionlint
15
17
id : download-actionlint
16
18
run : bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash) 1.6.23
17
19
shell : bash
20
+
18
21
- name : Check workflow files
19
22
run : ${{ steps.download-actionlint.outputs.executable }} -color
20
23
shell : bash
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ nodeLinker: node-modules
10
10
11
11
plugins :
12
12
- path : .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
13
- spec : " https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
13
+ spec : ' https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js'
14
14
- path : .yarn/plugins/@yarnpkg/plugin-constraints.cjs
15
- spec : " @yarnpkg/plugin-constraints"
15
+ spec : ' @yarnpkg/plugin-constraints'
16
16
17
17
yarnPath : .yarn/releases/yarn-3.2.1.cjs
You can’t perform that action at this time.
0 commit comments