Skip to content

Commit 2416a02

Browse files
Merge pull request llm-d-incubation#208 from MikeSpreitzer/lint-upgrades
✨ Update Go linting, add check of go mod tidy
2 parents ac3c3b8 + 9a8e669 commit 2416a02

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@ jobs:
1212
name: lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-go@v5
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
16+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
1717
with:
1818
go-version: '1.24'
19+
20+
- name: check go mod tidy
21+
run: |
22+
go mod tidy
23+
if [ -n "$(git status --porcelain=v2)" ]; then
24+
echo 'You need to run `go mod tidy`' >&2
25+
exit 1
26+
fi
27+
1928
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v8
29+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
2130
with:
22-
version: v2.1
31+
version: v2.8.0

0 commit comments

Comments
 (0)