start testing on Go 1.19.x

While here, start the changelog for the upcoming release,
which will likely be a bugfix release as it's a bit early to drop 1.18.

We also bump staticcheck to get a version that supports 1.19.

I also noticed the "Go version X or newer" messages were slightly weird
and inconsistent. Our policy, per the README, is "Go version X or newer",
so the errors given to the user were unnecessarily confusing.
For example, now that Go 1.19 is out, we shouldn't simply recommend that
they upgrade to 1.18; we should recommend 1.18 or later.
This commit is contained in:
Daniel Martí
2022-09-03 17:13:56 +01:00
parent 60dbece24f
commit 8ad374d2fb
4 changed files with 21 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x]
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
@@ -41,20 +41,20 @@ jobs:
# Static checks from this point forward. Only run on one Go version and on
# Linux, since it's the fastest platform, and the tools behave the same.
- name: Test third-party project builds
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
run: |
go install
./scripts/check-third-party.sh
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
run: ./scripts/crlf-test.sh
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
run: diff <(echo -n) <(gofmt -d .)
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
run: go vet ./...
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.18.x'
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
uses: dominikh/staticcheck-action@v1
with:
version: "2022.1.1"
version: "2022.1.3"
install-go: false
# We don't care about GOARCH=386 particularly,
@@ -68,7 +68,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x
- uses: actions/checkout@v3
- name: Test
run: go test -timeout=15m ./...