Skip to content

Commit f9b2ab2

Browse files
committed
move to Makefile
1 parent f235f7c commit f9b2ab2

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,6 @@ jobs:
140140
run: |
141141
make --output-sync=line -j lint
142142
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-
164143
gen:
165144
timeout-minutes: 8
166145
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
@@ -174,7 +153,7 @@ jobs:
174153

175154
- name: Install sqlc
176155
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
178157
179158
- name: go install tools
180159
run: |

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,27 @@ lint: lint/shellcheck lint/go lint/ts lint/helm
408408
lint/ts:
409409
cd site
410410
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
411418
.PHONY: lint/ts
412419

413420
lint/go:
414421
./scripts/check_enterprise_imports.sh
415422
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
416423
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
417432
.PHONY: lint/go
418433

419434
# Use shfmt to determine the shell files, takes editorconfig into consideration.

0 commit comments

Comments
 (0)