File tree 5 files changed +17619
-36928
lines changed
5 files changed +17619
-36928
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup node and pnpm
2
+ description : Setup node and install dependencies using pnpm
3
+ inputs :
4
+ use_lockfile :
5
+ description : ' Whether to use the lockfile vs latest floating dependencies'
6
+ required : false
7
+ default : ' true'
8
+ use_pinned_node :
9
+ description : ' Whether to use the node version defined in .npmrc'
10
+ required : false
11
+ default : ' false'
12
+ runs :
13
+ using : ' composite'
14
+ steps :
15
+ - uses : pnpm/action-setup@v4
16
+ name : Install pnpm
17
+ with :
18
+ run_install : false
19
+ - uses : actions/setup-node@v4
20
+ with :
21
+ node-version : 20
22
+ cache : pnpm
23
+ - run : pnpm install ${{ fromJSON('{"false":"--no-lockfile", "true":"--frozen-lockfile"}')[inputs.use_lockfile] }}
24
+ shell : bash
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
9
9
env :
10
- NODE_VERSION : 20
11
10
NODE_OPTIONS : ' --max_old_space_size=4096'
12
11
13
12
jobs :
17
16
timeout-minutes : 7
18
17
steps :
19
18
- name : Check out a copy of the repo
20
- uses : actions/checkout@v3
21
-
22
- - name : Use Node.js ${{ env.NODE_VERSION }}
23
- uses : actions/setup-node@v3
24
- with :
25
- cache : ' npm'
26
- node-version : ${{ env.NODE_VERSION }}
27
-
28
- - run : npm i -g npm@9
29
- - run : npm ci
30
-
19
+ uses : actions/checkout@v4
20
+ - uses : ./.github/actions/setup
31
21
- name : Lint
32
22
run : npm run lint
33
23
37
27
timeout-minutes : 7
38
28
steps :
39
29
- name : Check out a copy of the repo
40
- uses : actions/checkout@v3
41
-
42
- - name : Use Node.js ${{ env.NODE_VERSION }}
43
- uses : actions/setup-node@v3
44
- with :
45
- cache : ' npm'
46
- node-version : ${{ env.NODE_VERSION }}
47
-
48
- - run : npm i -g npm@9
49
- - run : npm ci
50
-
30
+ uses : actions/checkout@v4
31
+ - uses : ./.github/actions/setup
51
32
- name : Test
52
33
53
34
with :
61
42
timeout-minutes : 7
62
43
steps :
63
44
- name : Check out a copy of the repo
64
- uses : actions/checkout@v2
65
-
66
- - name : Use Node.js ${{ env.NODE_VERSION }}
67
- uses : actions/setup-node@v2
68
- with :
69
- cache : ' npm'
70
- node-version : ${{ env.NODE_VERSION }}
71
-
72
- - run : npm i -g npm@9
73
- - run : npm ci
74
-
45
+ uses : actions/checkout@v4
46
+ - uses : ./.github/actions/setup
75
47
- name : Test
76
- run : npm run test:node
48
+ run : pnpm run test:node
You can’t perform that action at this time.
0 commit comments