internal/ci: test and release on Go 1.19.x
We keep supporting and testing on Go 1.17.x for now,
at least until we have gathered more input on
https://github.com/cue-lang/cue/discussions/1937.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I917654f66394d3fe8a7648587dc63f09e425f327
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/543804
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fe06125..a8e1c4f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -19,7 +19,7 @@
- name: Install Go
uses: actions/setup-go@v3
with:
- go-version: 1.18.1
+ go-version: 1.19.1
- name: Setup qemu
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
diff --git a/.github/workflows/trybot.yml b/.github/workflows/trybot.yml
index c13d2af..8346c6e 100644
--- a/.github/workflows/trybot.yml
+++ b/.github/workflows/trybot.yml
@@ -18,6 +18,7 @@
go-version:
- 1.17.x
- 1.18.x
+ - 1.19.x
os:
- ubuntu-20.04
- macos-11
@@ -35,7 +36,7 @@
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- - if: matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04'
+ - if: matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04'
name: Early git and code sanity checks
run: |-
# Ensure the recent commit messages have Signed-off-by headers.
@@ -60,21 +61,21 @@
restore-keys: ${{ runner.os }}-${{ matrix.go-version }}-go-
- if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci/test'
run: echo CUE_LONG=true >> $GITHUB_ENV
- - if: matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04'
+ - if: matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04'
name: Generate
run: go generate ./...
- - if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci/test') || !( matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04' )
+ - if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci/test') || !( matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04' )
name: Test
run: go test ./...
- - if: matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04'
+ - if: matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04'
name: Test with -race
run: go test -race ./...
- - if: matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04'
+ - if: matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04'
name: Check
run: go vet ./...
- name: Check that git is clean at the end of the job
run: test -z "$(git status --porcelain)" || (git status; git diff; false)
- - if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci/test') && (matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04')
+ - if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/ci/test') && (matrix.go-version == '1.19.x' && matrix.os == 'ubuntu-20.04')
name: Pull this commit through the proxy on master
run: |-
v=$(git rev-parse HEAD)
diff --git a/internal/ci/github/workflows.cue b/internal/ci/github/workflows.cue
index b63fcf2..a5a364b 100644
--- a/internal/ci/github/workflows.cue
+++ b/internal/ci/github/workflows.cue
@@ -55,12 +55,12 @@
// Use the latest Go version for extra checks,
// such as running tests with the data race detector.
-_#latestStableGo: "1.18.x"
+_#latestStableGo: "1.19.x"
// Use a specific latest version for release builds.
// Note that we don't want ".x" for the sake of reproducibility,
// so we instead pin a specific Go release.
-_#pinnedReleaseGo: "1.18.1"
+_#pinnedReleaseGo: "1.19.1"
_#linuxMachine: "ubuntu-20.04"
_#macosMachine: "macos-11"
@@ -76,7 +76,7 @@
_#testStrategy: {
"fail-fast": false
matrix: {
- "go-version": ["1.17.x", _#latestStableGo]
+ "go-version": ["1.17.x", "1.18.x", _#latestStableGo]
os: [_#linuxMachine, _#macosMachine, _#windowsMachine]
}
}