Skip to content

Commit 36c646c

Browse files
committed
build: update GitHub actions versions
1 parent d4aaacb commit 36c646c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ jobs:
5555

5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v2
58+
uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 0
6161

6262
- name: Install Go
63-
uses: actions/setup-go@v2
63+
uses: actions/setup-go@v5
6464
with:
65-
stable: 'false'
6665
go-version: ${{ matrix.go }}
6766

6867
- name: Print Go version and environment
@@ -76,9 +75,12 @@ jobs:
7675
env
7776
7877
- name: Go module cache
79-
uses: actions/cache@v2
78+
uses: actions/cache@v4
8079
with:
81-
path: ~/go/pkg/mod
80+
path: |
81+
~/go/pkg/mod
82+
~/.cache/go-build
83+
~/.cache/golangci-lint
8284
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
8385
restore-keys: |
8486
${{ runner.os }}-go-
@@ -101,7 +103,7 @@ jobs:
101103
if: matrix.integrationtest
102104

103105
- name: Code quality test
104-
uses: golangci/golangci-lint-action@v2
106+
uses: golangci/golangci-lint-action@v6
105107
with:
106108
# Version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
107109
version: latest

0 commit comments

Comments
 (0)