Skip to content

Commit e620ae4

Browse files
authored
chore: change tests workflow on go 1.21-1.26 (#1923)
1 parent 205393e commit e620ae4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
unit-scenario-test:
77
strategy:
88
matrix:
9-
go: [ "1.18", "1.25" ]
9+
go: [ "1.21", "1.26" ]
1010
runs-on: [ Linux, X64 ]
1111
steps:
1212
- uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Go
3737
uses: actions/setup-go@v5
3838
with:
39-
go-version: "1.25"
39+
go-version: stable
4040
- name: Benchmark
4141
# we only use this CI to verify bench code works
4242
# setting benchtime=100ms is saving our time...
@@ -45,7 +45,7 @@ jobs:
4545
unit-test-x64:
4646
strategy:
4747
matrix:
48-
go: [ "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25" ]
48+
go: ["1.21", "1.22", "1.23", "1.24", "1.25", "1.26" ]
4949
runs-on: [ Linux, X64 ]
5050
steps:
5151
- uses: actions/checkout@v4
@@ -60,7 +60,7 @@ jobs:
6060
unit-test-arm:
6161
strategy:
6262
matrix:
63-
go: [ "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25" ]
63+
go: ["1.21", "1.22", "1.23", "1.24", "1.25", "1.26" ]
6464
runs-on: [ ARM64 ] # It's OK under Linux or macOS
6565
steps:
6666
- uses: actions/checkout@v4
@@ -79,7 +79,7 @@ jobs:
7979
- name: Set up Go
8080
uses: actions/setup-go@v5
8181
with:
82-
go-version: "1.25"
82+
go-version: stable
8383
- name: Prepare
8484
run: |
8585
go install github.com/cloudwego/thriftgo@main
@@ -108,7 +108,7 @@ jobs:
108108
- name: Set up Go
109109
uses: actions/setup-go@v5
110110
with:
111-
go-version: "1.25"
111+
go-version: stable
112112
cache: false # don't use cache for self-hosted runners
113113
- name: Windows compatibility test
114114
run: go test -run=^$ ./...
@@ -121,7 +121,7 @@ jobs:
121121
- name: Set up Go
122122
uses: actions/setup-go@v5
123123
with:
124-
go-version: "1.25"
124+
go-version: stable
125125
cache: false # don't use cache for self-hosted runners
126126
- name: Run coverage
127127
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...

0 commit comments

Comments
 (0)