Skip to content

Commit 30c8f4f

Browse files
committed
Add tests for old Go versions
Test old Go versions all the way back to 1.17. Signed-off-by: SuperQ <[email protected]>
1 parent 34b8642 commit 30c8f4f

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
go_version: ["1.20", "1.19"]
9+
go_version:
10+
- "1.19"
11+
- "1.20"
1012
steps:
1113
- uses: actions/checkout@v3
1214
- name: Setup Go
@@ -17,3 +19,19 @@ jobs:
1719
- run: ./.ci.gofmt.sh
1820
- run: ./.ci.govet.sh
1921
- run: go test -v -race ./...
22+
test:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
go_version:
27+
- "1.17"
28+
- "1.18"
29+
- "1.19"
30+
- "1.20"
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Setup Go
34+
uses: actions/[email protected]
35+
with:
36+
go-version: ${{ matrix.go_version }}
37+
- run: go test -v -race ./...

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ To update Testify to the latest version, use `go get -u github.com/stretchr/test
350350
Supported go versions
351351
==================
352352

353-
We currently support the most recent major Go versions from 1.19 onward.
353+
We currently support the most recent major Go versions from 1.17 onward.
354354

355355
------
356356

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/stretchr/testify
22

33
// This should match the minimum supported version that is tested in
44
// .github/workflows/main.yml
5-
go 1.19
5+
go 1.17
66

77
require (
88
github.com/davecgh/go-spew v1.1.1

0 commit comments

Comments
 (0)