Skip to content

Commit 1f488af

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

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ jobs:
1717
- run: ./.ci.gofmt.sh
1818
- run: ./.ci.govet.sh
1919
- run: go test -v -race ./...
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
go_version: ["1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Setup Go
28+
uses: actions/[email protected]
29+
with:
30+
go-version: ${{ matrix.go_version }}
31+
- run: go test -v -race ./...

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.13
66

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

0 commit comments

Comments
 (0)