9
9
10
10
permissions : {}
11
11
12
+ env :
13
+ # renovate: datasource=npm depName=pnpm
14
+ PNPM_VERSION : 10.12.4
15
+
12
16
jobs :
13
17
test :
14
18
name : Test
@@ -19,12 +23,17 @@ jobs:
19
23
with :
20
24
persist-credentials : false
21
25
26
+ - name : Install pnpm
27
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
28
+ with :
29
+ version : ${{ env.PNPM_VERSION }}
30
+
22
31
- name : Install node dependencies
23
- run : npm ci
32
+ run : pnpm install --frozen-lockfile
24
33
25
34
- name : Test
26
35
run : |
27
- npm run test
36
+ pnpm test
28
37
29
38
lint :
30
39
name : Lint
@@ -35,12 +44,17 @@ jobs:
35
44
with :
36
45
persist-credentials : false
37
46
47
+ - name : Install pnpm
48
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
49
+ with :
50
+ version : ${{ env.PNPM_VERSION }}
51
+
38
52
- name : Install node dependencies
39
- run : npm ci
53
+ run : pnpm install --frozen-lockfile
40
54
41
55
- name : Lint
42
56
run : |
43
- npm run lint
57
+ pnpm lint
44
58
45
59
format :
46
60
name : Format
@@ -51,11 +65,16 @@ jobs:
51
65
with :
52
66
persist-credentials : false
53
67
68
+ - name : Install pnpm
69
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
70
+ with :
71
+ version : ${{ env.PNPM_VERSION }}
72
+
54
73
- name : Install Prettier
55
- run : npm ci
74
+ run : pnpm install --frozen-lockfile
56
75
57
76
- name : Format
58
- run : npx prettier --check .
77
+ run : pnpm prettier --check .
59
78
60
79
zizmor :
61
80
name : Zizmor
74
93
# Instead, fail if there's a security issue.
75
94
advanced-security : false
76
95
77
- npm-install :
78
- name : Lockfile up-to-date
79
- runs-on : ubuntu-24.04
80
- steps :
81
- - name : Checkout repository
82
- uses : actions/checkout@v4
83
- with :
84
- persist-credentials : false
85
-
86
- - name : Check if package-lock.json is up-to-date
87
- run : |
88
- npm install
89
-
90
- # Assert that the git diff is empty.
91
- git diff --exit-code || (echo "Git diff is not empty. Please run 'npm install' and commit the changes." && exit 1)
92
-
93
96
package :
94
97
name : Package
95
98
runs-on : ubuntu-24.04
@@ -99,16 +102,21 @@ jobs:
99
102
with :
100
103
persist-credentials : false
101
104
105
+ - name : Install pnpm
106
+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
107
+ with :
108
+ version : ${{ env.PNPM_VERSION }}
109
+
102
110
- name : Install node dependencies
103
- run : npm ci
111
+ run : pnpm install --frozen-lockfile
104
112
105
113
- name : Check is packaged
106
114
run : |
107
115
# Compile to single js files.
108
- npm run package
116
+ pnpm package
109
117
110
118
# Assert that the git diff is empty.
111
- git diff --exit-code || (echo "Git diff is not empty. Please run 'npm run package' and commit the changes." && exit 1)
119
+ git diff --exit-code || (echo "Git diff is not empty. Please run 'pnpm package' and commit the changes." && exit 1)
112
120
113
121
# This job tests the action directly by running it against a mock server.
114
122
action-test :
@@ -200,7 +208,6 @@ jobs:
200
208
- format
201
209
- zizmor
202
210
- package
203
- - npm-install
204
211
- rustfmt
205
212
- action-test
206
213
- clippy
0 commit comments