Skip to content

Commit f235f7c

Browse files
committed
move to lint check
1 parent d125251 commit f235f7c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,27 @@ 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+
143164
gen:
144165
timeout-minutes: 8
145166
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
@@ -182,27 +203,6 @@ jobs:
182203
- name: Check for unstaged files
183204
run: ./scripts/check_unstaged.sh
184205

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-
206206
fmt:
207207
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
208208
timeout-minutes: 5

0 commit comments

Comments
 (0)