Skip to content

Commit 9193495

Browse files
committed
force a check for go 1.21, speed up validate as it does not need tests
1 parent 1d0624a commit 9193495

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.buildkite/pipeline.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,19 @@ steps:
7070
command:
7171
- |-
7272
./scripts/golint.sh
73-
- docker-compose#v3.0.0:
74-
run: unit-test
75-
config: docker/buildkite/docker-compose.yml
73+
74+
- label: ":golang: ensure it builds on go 1.21"
75+
artifact_paths: [ ]
76+
plugins:
77+
- kubernetes:
78+
<<: *kubernetes
79+
podSpec:
80+
<<: *podSpec
81+
containers:
82+
- <<: *commandContainer
83+
command:
84+
- |-
85+
GOTOOLCHAIN=go1.21.1 go build ./...
7686
7787
- label: ":golang: integration-test-sticky-off"
7888
artifact_paths:

workflow/workflow.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,26 @@
2121
package workflow
2222

2323
import (
24+
"fmt"
25+
2426
"github.com/uber-go/tally"
2527
"go.uber.org/zap"
2628

2729
"go.uber.org/cadence/encoded"
2830
"go.uber.org/cadence/internal"
31+
32+
"testing"
33+
"weak"
2934
)
3035

36+
func init() {
37+
var s string
38+
sp := weak.Make(&s)
39+
fmt.Println(sp)
40+
41+
_ = (&testing.T{}).Context()
42+
}
43+
3144
type (
3245

3346
// ChildWorkflowFuture represents the result of a child workflow execution

0 commit comments

Comments
 (0)