Skip to content

Commit 61c5cdb

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 f97607b commit 61c5cdb

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
@@ -1,6 +1,6 @@
11
module github.com/stretchr/testify
22

3-
go 1.20
3+
go 1.13
44

55
require (
66
github.com/davecgh/go-spew v1.1.1

0 commit comments

Comments
 (0)