File tree 2 files changed +16
-22
lines changed 2 files changed +16
-22
lines changed Original file line number Diff line number Diff line change @@ -140,27 +140,6 @@ 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
-
164
143
gen :
165
144
timeout-minutes : 8
166
145
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
@@ -174,7 +153,7 @@ jobs:
174
153
175
154
- name : Install sqlc
176
155
run : |
177
- curl -sSL https://github.com/kyleconroy/sqlc/releases/download/v1.17.2 /sqlc_1.17.2_linux_amd64 .tar.gz | sudo tar -C /usr/bin -xz sqlc
156
+ curl -sSL https://github.com/kyleconroy/sqlc/releases/download/v1.18.0 /sqlc_1.18.0_linux_amd64 .tar.gz | sudo tar -C /usr/bin -xz sqlc
178
157
179
158
- name : go install tools
180
159
run : |
Original file line number Diff line number Diff line change @@ -408,12 +408,27 @@ lint: lint/shellcheck lint/go lint/ts lint/helm
408
408
lint/ts :
409
409
cd site
410
410
yarn && yarn lint
411
+ depcheck || true
412
+ if [ -f unused.json ]; then
413
+ echo " Unused dependencies found:"
414
+ cat unused.json
415
+ echo " Please review and remove these dependencies manually."
416
+ exit 1
417
+ fi
411
418
.PHONY : lint/ts
412
419
413
420
lint/go :
414
421
./scripts/check_enterprise_imports.sh
415
422
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
416
423
golangci-lint run
424
+ go mod tidy
425
+ git diff --exit-code -- go.mod go.sum
426
+ if [ $? -ne 0 ]; then
427
+ echo " Unused Go dependencies found:"
428
+ git diff go.mod go.sum
429
+ echo " Please review and remove these dependencies manually."
430
+ exit 1
431
+ fi
417
432
.PHONY : lint/go
418
433
419
434
# Use shfmt to determine the shell files, takes editorconfig into consideration.
You can’t perform that action at this time.
0 commit comments