Skip to content

Commit

Permalink
Add tests for old Go versions
Browse files Browse the repository at this point in the history
Test old Go versions all the way back to 1.17.

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ committed Jul 5, 2023
1 parent 34b8642 commit 30c8f4f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -6,7 +6,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ["1.20", "1.19"]
go_version:
- "1.19"
- "1.20"
steps:
- uses: actions/checkout@v3
- name: Setup Go
Expand All @@ -17,3 +19,19 @@ jobs:
- run: ./.ci.gofmt.sh
- run: ./.ci.govet.sh
- run: go test -v -race ./...
test:
runs-on: ubuntu-latest
strategy:
matrix:
go_version:
- "1.17"
- "1.18"
- "1.19"
- "1.20"
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3.2.0
with:
go-version: ${{ matrix.go_version }}
- run: go test -v -race ./...
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -350,7 +350,7 @@ To update Testify to the latest version, use `go get -u github.com/stretchr/test
Supported go versions
==================

We currently support the most recent major Go versions from 1.19 onward.
We currently support the most recent major Go versions from 1.17 onward.

------

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -2,7 +2,7 @@ module github.com/stretchr/testify

// This should match the minimum supported version that is tested in
// .github/workflows/main.yml
go 1.19
go 1.17

require (
github.com/davecgh/go-spew v1.1.1
Expand Down

0 comments on commit 30c8f4f

Please sign in to comment.