Skip to content

Commit 924bf27

Browse files
committed
chore: update CI
1 parent 1eefe68 commit 924bf27

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

.github/workflows/basic.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,15 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
go-version: ['1.20', 1.x ]
17+
go-version: [stable, oldstable ]
1818
os: [ubuntu-latest, macos-latest] # Go plugins are only supported on linux, freebsd, and darwin.
1919
env:
2020
CGO_ENABLED: 0
2121
steps:
22-
- uses: actions/checkout@v3
23-
- uses: actions/setup-go@v4
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-go@v5
2424
with:
25-
go-version: '1.20'
26-
cache: false
27-
28-
- name: Cache Go modules
29-
uses: actions/cache@v3
30-
with:
31-
# In order:
32-
# * Module download cache
33-
# * Build cache (Linux)
34-
# * Build cache (Mac)
35-
path: |
36-
~/go/pkg/mod
37-
~/.cache/go-build
38-
~/Library/Caches/go-build
39-
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
40-
restore-keys: |
41-
${{ runner.os }}-${{ matrix.go-version }}-go-
25+
go-version: ${{ matrix.go-version }}
4226

4327
- name: Check and get dependencies
4428
run: |
@@ -56,9 +40,9 @@ jobs:
5640
CGO_ENABLED: 1
5741

5842
- name: golangci-lint
59-
uses: golangci/golangci-lint-action@v3
43+
uses: golangci/golangci-lint-action@v6
6044
with:
61-
version: v1.53.2
45+
version: v1.59.1
6246
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
6347
install-mode: goinstall
6448
args: --timeout=10m

0 commit comments

Comments
 (0)