YAML engineering: quote go version string

We're currently using Go 1.19; we'll switch to 1.20 when the NATS Maintainers
make the call to switch.  Prepare by making sure that 1.20 won't turn into 1.2
instead, by quoting the string to be updated and adding a warning.
This commit is contained in:
Phil Pennock
2023-02-07 17:32:20 -05:00
parent a4bdc11cd7
commit 2ac72d92bf
3 changed files with 9 additions and 3 deletions

View File

@@ -5,7 +5,9 @@ jobs:
test:
strategy:
matrix:
go: [1.16]
# This should be quoted or use .x, but should not be unquoted.
# Remember that a YAML bare float drops trailing zeroes.
go: ['1.16']
env:
GOPATH: /home/runner/work/nats-server

View File

@@ -24,7 +24,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
# This should be quoted or use .x, but should not be unquoted.
# Remember that a YAML bare float drops trailing zeroes.
go-version: '1.19'
- name: goreleaser
uses: goreleaser/goreleaser-action@v3

View File

@@ -7,7 +7,9 @@ vm:
language: go
go:
- 1.19.5
# This should be quoted or use .x, but should not be unquoted.
# Remember that a YAML bare float drops trailing zeroes.
- '1.19.5'
addons:
apt: