Skip to content

Commit 6f341fc

Browse files
author
Мудрых Артур Викторович (4047650)
committed
https://github.com/golangci/golangci-lint-action/issues/442
1 parent 6061918 commit 6f341fc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
name: lint
2121
runs-on: ubuntu-latest
2222
steps:
23+
- uses: actions/checkout@v3
2324
- uses: actions/setup-go@v3
2425
with:
25-
go-version: 1.18
26-
- uses: actions/checkout@v3
26+
go-version-file: go.mod
27+
cache: true
28+
cache-dependency-path: go.sum
2729
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@v3
29-
with:
30-
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
31-
version: v1.29
30+
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
31+
- name: Run golangci-lint
32+
run: golangci-lint run --version --verbose --out-format=github-actions

0 commit comments

Comments
 (0)