Skip to content

Commit c052fc7

Browse files
committed
ci: update GitHub actions and test matrix for Go versions
- Update `actions/checkout` to version 4 - Update `golangci/golangci-lint-action` to version 6 - Add Go versions 1.22 and 1.23 to the test matrix - Update `supercharge/redis-github-action` to version 1.5.0 - Update `actions/cache` to version 4 - Update `codecov/codecov-action` to version 5 - Update `goreleaser/goreleaser-action` to version 6 Signed-off-by: appleboy <[email protected]>
1 parent b0c903e commit c052fc7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
with:
1111
go-version: "^1"
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Setup golangci-lint
15-
uses: golangci/golangci-lint-action@v3
15+
uses: golangci/golangci-lint-action@v6
1616
with:
1717
version: latest
1818
args: --verbose
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [ubuntu-latest]
25-
go: [1.18, 1.19, "1.20", 1.21]
25+
go: [1.18, 1.19, "1.20", 1.21, 1.22, 1.23]
2626
include:
2727
- os: ubuntu-latest
2828
go-build: ~/.cache/go-build
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Start Redis
37-
uses: supercharge/redis-github-action@1.4.0
37+
uses: supercharge/redis-github-action@1.5.0
3838
with:
3939
redis-version: 6
4040

@@ -52,11 +52,11 @@ jobs:
5252
go-version: ${{ matrix.go }}
5353

5454
- name: Checkout Code
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v4
5656
with:
5757
ref: ${{ github.ref }}
5858

59-
- uses: actions/cache@v3
59+
- uses: actions/cache@v4
6060
with:
6161
path: |
6262
${{ matrix.go-build }}
@@ -69,6 +69,6 @@ jobs:
6969
go test -v -covermode=atomic -coverprofile=coverage.out
7070
7171
- name: Upload coverage to Codecov
72-
uses: codecov/codecov-action@v3
72+
uses: codecov/codecov-action@v5
7373
with:
7474
flags: ${{ matrix.os }},go-${{ matrix.go }}

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
go-version: "^1"
2323
- name: Run GoReleaser
24-
uses: goreleaser/goreleaser-action@v4
24+
uses: goreleaser/goreleaser-action@v6
2525
with:
2626
# either 'goreleaser' (default) or 'goreleaser-pro'
2727
distribution: goreleaser

0 commit comments

Comments
 (0)