mirror of https://github.com/stretchr/testify.git
Add tests for old Go versions
Test old Go versions all the way back to 1.17. Signed-off-by: SuperQ <superq@gmail.com>pull/1409/head
parent
34b86428f4
commit
95683d1a6c
|
@ -6,7 +6,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go_version: ["1.20", "1.19"]
|
go_version:
|
||||||
|
- "1.19"
|
||||||
|
- "1.20"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
|
@ -17,3 +19,19 @@ jobs:
|
||||||
- run: ./.ci.gofmt.sh
|
- run: ./.ci.gofmt.sh
|
||||||
- run: ./.ci.govet.sh
|
- run: ./.ci.govet.sh
|
||||||
- run: go test -v -race ./...
|
- 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
go.mod
2
go.mod
|
@ -2,7 +2,7 @@ module github.com/stretchr/testify
|
||||||
|
|
||||||
// This should match the minimum supported version that is tested in
|
// This should match the minimum supported version that is tested in
|
||||||
// .github/workflows/main.yml
|
// .github/workflows/main.yml
|
||||||
go 1.19
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/davecgh/go-spew v1.1.1
|
github.com/davecgh/go-spew v1.1.1
|
||||||
|
|
Loading…
Reference in New Issue