Skip to content

Commit 7fa2fd9

Browse files
committed
fix linter, update ci
1 parent 491b6b7 commit 7fa2fd9

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
with:
17+
fetch-depth: 0
1418
- name: Install Go
15-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
1620
with:
17-
go-version: 1.22.x
18-
- name: Checkout code
19-
uses: actions/checkout@v4
21+
go-version-file: go.mod
2022
- name: Run linters
21-
uses: golangci/golangci-lint-action@v6
23+
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
24+
with:
25+
problem-matchers: true
26+
args: --output.sarif.path linter-results.sarif
27+
- name: Upload SARIF to Code Scanning
28+
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
2229
with:
23-
version: v1.60.1
30+
sarif_file: ./linter-results.sarif
2431
- name: Run tests
25-
run: go test -v -covermode=count
32+
run: go test -v -covermode=count

0 commit comments

Comments
 (0)