@@ -31,14 +31,18 @@ concurrency:
3131 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3232 cancel-in-progress : ${{ !contains(github.ref, 'release/') && !contains(github.ref, 'main') }}
3333
34+ env :
35+ GO_VERSION : &go_version 1.25.7
36+ GO_TEST_ANNOTATIONS_VERSION : &go_test_annotations_version guyarb/golang-test-annotations@v0.8.0
37+
3438jobs :
3539 build :
3640 runs-on : ubuntu-latest
3741 steps :
3842 - uses : actions/checkout@v5
3943 - uses : actions/setup-go@v5
4044 with :
41- go-version : 1.25.6
45+ go-version : *go_version
4246 - name : go-build
4347 run : go build "./..."
4448
4953 - uses : actions/checkout@v5
5054 - uses : actions/setup-go@v5
5155 with :
52- go-version : 1.25.6
56+ go-version : *go_version
5357 - run : go install github.com/google/addlicense@latest
5458 - run : addlicense -check -f licenses/addlicense.tmpl .
5559
6064 - uses : actions/checkout@v5
6165 - uses : actions/setup-go@v5
6266 with :
63- go-version : 1.25.6
67+ go-version : *go_version
6468 - name : golangci-lint
6569 uses : golangci/golangci-lint-action@v9
6670 with :
@@ -87,15 +91,15 @@ jobs:
8791 - uses : actions/checkout@v5
8892 - uses : actions/setup-go@v5
8993 with :
90- go-version : 1.25.6
94+ go-version : *go_version
9195 - name : Build
9296 run : go build -v "./..."
9397 - name : Run Tests
9498 run : go test -tags cb_sg_devmode -shuffle=on -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
9599 shell : bash
96100 - name : Annotate Failures
97101 if : always()
98- uses : guyarb/golang-test-annotations@v0.8.0
102+ uses : *go_test_annotations_version
99103 with :
100104 test-results : test.json
101105
@@ -107,13 +111,13 @@ jobs:
107111 - uses : actions/checkout@v5
108112 - uses : actions/setup-go@v5
109113 with :
110- go-version : 1.25.6
114+ go-version : *go_version
111115 - name : Run Tests
112116 run : go test -tags cb_sg_devmode -race -shuffle=on -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
113117 shell : bash
114118 - name : Annotate Failures
115119 if : always()
116- uses : guyarb/golang-test-annotations@v0.8.0
120+ uses : *go_test_annotations_version
117121 with :
118122 test-results : test.json
119123
@@ -122,6 +126,43 @@ jobs:
122126 env :
123127 GOPRIVATE : github.com/couchbaselabs
124128 SG_TEST_USE_DEFAULT_COLLECTION : true
129+ steps :
130+ - uses : actions/checkout@v5
131+ - uses : actions/setup-go@v5
132+ with :
133+ go-version : *go_version
134+ - name : Run Tests
135+ run : go test -tags cb_sg_devmode -shuffle=on -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
136+ shell : bash
137+ - name : Annotate Failures
138+ if : always()
139+ uses : *go_test_annotations_version
140+ with :
141+ test-results : test.json
142+ test-benchmark-compile :
143+ runs-on : ubuntu-latest
144+ env :
145+ GOPRIVATE : github.com/couchbaselabs
146+ steps :
147+ - uses : actions/checkout@v5
148+ - uses : actions/setup-go@v5
149+ with :
150+ go-version : *go_version
151+ - name : Run Tests
152+ run : go test -tags cb_sg_devmode -shuffle=on -timeout=30m -count=1 -json -short -bench=. -benchtime=1x -run '!' -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
153+ shell : bash
154+ - name : Annotate Failures
155+ if : always()
156+ uses : *go_test_annotations_version
157+ with :
158+ test-results : test.json
159+
160+
161+ test-disable-rev-cache :
162+ runs-on : ubuntu-latest
163+ env :
164+ GOPRIVATE : github.com/couchbaselabs
165+ SG_TEST_DISABLE_REV_CACHE : true
125166 steps :
126167 - uses : actions/checkout@v5
127168 - uses : actions/setup-go@v5
@@ -174,7 +215,7 @@ jobs:
174215 - uses : actions/checkout@v5
175216 - uses : actions/setup-go@v5
176217 with :
177- go-version : 1.25.6
218+ go-version : *go_version
178219 - name : Build
179220 run : go build -v "./tools/stats-definition-exporter"
180221 - name : Run Tests
@@ -187,7 +228,7 @@ jobs:
187228 - uses : actions/checkout@v5
188229 - uses : actions/setup-go@v5
189230 with :
190- go-version : 1.25.6
231+ go-version : *go_version
191232 - name : Build
192233 run : go build "./tools/cache_perf_tool"
193234 govulncheck :
@@ -197,5 +238,5 @@ jobs:
197238 - id : govulncheck
198239 uses : golang/govulncheck-action@v1
199240 with :
200- go-version-input : 1.25.6
241+ go-version-input : *go_version
201242 go-package : ./...
0 commit comments