Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2112651

Browse files
committed
fixup! Add golintci and fix errors
1 parent 38e623d commit 2112651

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/test.yaml

+17-10
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,24 @@ jobs:
1919
lint:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v1
23-
- uses: actions/cache@v1
24-
with:
25-
path: ~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
29-
- name: lint
30-
uses: ./ci/image
22+
- uses: actions/checkout@v2
23+
- name: golangci-lint
24+
uses: golangci/golangci-lint-action@v2
3125
with:
32-
args: ./ci/steps/lint.sh
26+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
27+
version: v1.29
28+
# steps:
29+
# - uses: actions/checkout@v1
30+
# - uses: actions/cache@v1
31+
# with:
32+
# path: ~/go/pkg/mod
33+
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34+
# restore-keys: |
35+
# ${{ runner.os }}-go-
36+
# - name: lint
37+
# uses: ./ci/image
38+
# with:
39+
# args: ./ci/steps/lint.sh
3340
test:
3441
runs-on: ubuntu-latest
3542
steps:

0 commit comments

Comments
 (0)