File tree 1 file changed +21
-21
lines changed 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,27 @@ jobs:
140
140
run : |
141
141
make --output-sync=line -j lint
142
142
143
+ - name : Check for unsued npm packages
144
+ run : |
145
+ depcheck || true
146
+ if [ -f unused.json ]; then
147
+ echo "Unused dependencies found:"
148
+ cat unused.json
149
+ echo "Please review and remove these dependencies manually."
150
+ exit 1
151
+ fi
152
+
153
+ - name : Check for unsued go packages
154
+ run : |
155
+ go mod tidy
156
+ git diff --exit-code -- go.mod go.sum
157
+ if [ $? -ne 0 ]; then
158
+ echo "Unused Go dependencies found:"
159
+ git diff go.mod go.sum
160
+ echo "Please review and remove these dependencies manually."
161
+ exit 1
162
+ fi
163
+
143
164
gen :
144
165
timeout-minutes : 8
145
166
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
@@ -182,27 +203,6 @@ jobs:
182
203
- name : Check for unstaged files
183
204
run : ./scripts/check_unstaged.sh
184
205
185
- - name : Check for unsued npm packages
186
- run : |
187
- depcheck || true
188
- if [ -f unused.json ]; then
189
- echo "Unused dependencies found:"
190
- cat unused.json
191
- echo "Please review and remove these dependencies manually."
192
- exit 1
193
- fi
194
-
195
- - name : Check for unsued go packages
196
- run : |
197
- go mod tidy
198
- git diff --exit-code -- go.mod go.sum
199
- if [ $? -ne 0 ]; then
200
- echo "Unused Go dependencies found:"
201
- git diff go.mod go.sum
202
- echo "Please review and remove these dependencies manually."
203
- exit 1
204
- fi
205
-
206
206
fmt :
207
207
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
208
208
timeout-minutes : 5
You can’t perform that action at this time.
0 commit comments