Skip to content

Commit d6e0676

Browse files
committed
check modernize in CI
1 parent 6fe0704 commit d6e0676

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
with:
2121
go-version-file: go.mod
2222

23+
- name: Check modernize
24+
run: |
25+
go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...
26+
git diff --exit-code
27+
2328
- name: Build
2429
run: go build ./cmd/artifact-fs
2530

0 commit comments

Comments
 (0)