Skip to content

Commit 1adccf7

Browse files
committed
Fix golangci-lint
1 parent 9019109 commit 1adccf7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
File renamed without changes.

.github/workflows/golangci-lint.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18+
- name: Determine Go version from go.mod
19+
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
20+
- name: Set up Go
21+
uses: actions/setup-go@v3
22+
with:
23+
go-version: ${{ env.GO_VERSION }}
1824
- name: golangci-lint
1925
uses: golangci/golangci-lint-action@v3
2026
with:
21-
args: --timeout=3m
27+
args: --issues-exit-code=0 --timeout=3m ./...

0 commit comments

Comments
 (0)