Skip to content

Commit aba0014

Browse files
committed
ci: update CI workflows and actions to latest versions
- Update CodeQL actions to version 3 - Update golangci-lint action to version 6 - Add Go 1.22 and 1.23 to the supported versions in the Go workflow - Update actions/cache to version 4 - Update codecov action to version 5 - Update GoReleaser action to version 6 - Change GoReleaser args to `release --clean` Signed-off-by: appleboy <[email protected]>
1 parent 572db03 commit aba0014

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/codeql.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@v2
44+
uses: github/codeql-action/init@v3
4545
with:
4646
languages: ${{ matrix.language }}
4747
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,4 +50,4 @@ jobs:
5050
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5151

5252
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@v2
53+
uses: github/codeql-action/analyze@v3

.github/workflows/go.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
go-version: "^1"
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
14+
1415
- name: Setup golangci-lint
15-
uses: golangci/golangci-lint-action@v3
16+
uses: golangci/golangci-lint-action@v6
1617
with:
1718
args: --verbose
1819

@@ -21,7 +22,7 @@ jobs:
2122
strategy:
2223
matrix:
2324
os: [ubuntu-latest]
24-
go: [1.18, 1.19, "1.20", 1.21]
25+
go: [1.18, 1.19, "1.20", 1.21, 1.22, 1.23]
2526
include:
2627
- os: ubuntu-latest
2728
go-build: ~/.cache/go-build
@@ -47,7 +48,7 @@ jobs:
4748
with:
4849
ref: ${{ github.ref }}
4950

50-
- uses: actions/cache@v3
51+
- uses: actions/cache@v4
5152
with:
5253
path: |
5354
${{ matrix.go-build }}
@@ -60,6 +61,6 @@ jobs:
6061
go test -v -covermode=atomic -coverprofile=coverage.out
6162
6263
- name: Upload coverage to Codecov
63-
uses: codecov/codecov-action@v3
64+
uses: codecov/codecov-action@v5
6465
with:
6566
flags: ${{ matrix.os }},go-${{ matrix.go }}

.github/workflows/goreleaser.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ jobs:
2121
with:
2222
go-version: "^1"
2323
- name: Run GoReleaser
24-
uses: goreleaser/goreleaser-action@v5
24+
uses: goreleaser/goreleaser-action@v6
2525
with:
2626
# either 'goreleaser' (default) or 'goreleaser-pro'
2727
distribution: goreleaser
28-
version: latest
29-
args: release --rm-dist
28+
args: release --clean
3029
env:
3130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)