Skip to content

Commit 3e5cea5

Browse files
authored
ci: fix lint, fmt and upload artifacts (#218)
* chore(.github): update actions/upload-artifacts
1 parent 20367d4 commit 3e5cea5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
env:
3333
COVERALLS_TOKEN: ${{ secrets.github_token }}
3434
- name: Upload coverage.html
35-
uses: actions/upload-artifact@v2
35+
uses: actions/upload-artifact@v4
3636
with:
3737
name: coverage
3838
path: ci/out/coverage.html

ci/fmt.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ modtidy: gen
1313
go mod tidy
1414

1515
gofmt: gen
16-
go run mvdan.cc/gofumpt@latest -w .
16+
# gofumpt v0.7.0 requires Go 1.22 or later.
17+
go run mvdan.cc/[email protected] -w .
1718

1819
prettier:
1920
npx prettier --write --print-width=120 --no-semi --trailing-comma=all --loglevel=warn $$(git ls-files "*.yml")

ci/lint.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ govet:
44
go vet ./...
55

66
golint:
7-
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run .
7+
# golangci-lint newer than v1.55.2 is not compatible with Go 1.20 when using go run.
8+
go run github.com/golangci/golangci-lint/cmd/[email protected] run .

0 commit comments

Comments
 (0)