Skip to content

Commit 657f3ab

Browse files
committed
ci: update GitHub actions and Go versions in CI configuration
- Update `actions/setup-go` to version 5 - Update `actions/checkout` to version 4 - Update `golangci/golangci-lint-action` to version 6 - Change Go versions to `1.22` and `1.23` in the matrix - Use double quotes instead of single quotes for Go version and RabbitMQ environment variables Signed-off-by: appleboy <[email protected]>
1 parent f83decd commit 657f3ab

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/go.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Setup go
9-
uses: actions/setup-go@v3
9+
uses: actions/setup-go@v5
1010
with:
11-
go-version: '^1'
11+
go-version: "^1"
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
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
version: latest
1819
args: --verbose
@@ -22,7 +23,7 @@ jobs:
2223
strategy:
2324
matrix:
2425
os: [ubuntu-latest]
25-
go: [1.17, 1.18, 1.19, '1.20']
26+
go: ["1.22", "1.23"]
2627
include:
2728
- os: ubuntu-latest
2829
go-build: ~/.cache/go-build
@@ -54,11 +55,11 @@ jobs:
5455
5556
- uses: mer-team/[email protected]
5657
with:
57-
RABBITMQ_USER: 'guest'
58-
RABBITMQ_PASS: 'guest'
58+
RABBITMQ_USER: "guest"
59+
RABBITMQ_PASS: "guest"
5960
RABBITMQ_PORT: 5672
6061
RABBITMQ_MNG_PORT: 15672
61-
RABBITMQ_TAG: '3-management-alpine'
62+
RABBITMQ_TAG: "3-management-alpine"
6263

6364
- name: Run Tests
6465
run: |

0 commit comments

Comments
 (0)