Merge pull request #1409 from SuperQ/test_old_versions

CI: run tests from go1.17
pull/1330/head
Olivier Mengué 2023-07-06 13:09:59 +02:00 committed by GitHub
commit 78aedbf433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -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
@ -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
go.mod
View File

@ -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