Skip to content

Commit b4e0e6f

Browse files
committed
✨ 升级lint到1.17
1 parent 332bbfc commit b4e0e6f

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/pull.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,22 @@ jobs:
55
name: lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- name: Set up Go
9+
uses: actions/setup-go@v2
10+
with:
11+
go-version: 1.17
12+
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@v2
15+
16+
- name: Cache Go
17+
id: cache
18+
uses: actions/cache@v2
19+
with:
20+
# A list of files, directories, and wildcard patterns to cache and restore
21+
path: ~/go/pkg/mod
22+
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
23+
924
- name: golangci-lint
1025
uses: golangci/golangci-lint-action@master
1126
with:

.github/workflows/push.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,22 @@ jobs:
55
name: lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- name: Set up Go
9+
uses: actions/setup-go@v2
10+
with:
11+
go-version: 1.17
12+
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@v2
15+
16+
- name: Cache Go
17+
id: cache
18+
uses: actions/cache@v2
19+
with:
20+
# A list of files, directories, and wildcard patterns to cache and restore
21+
path: ~/go/pkg/mod
22+
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
23+
924
- name: golangci-lint
1025
uses: golangci/golangci-lint-action@master
1126
with:

0 commit comments

Comments
 (0)