Add testing matrix
This commit is contained in:
@@ -5,14 +5,17 @@ on:
|
|||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: 'ubuntu-latest'
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: ["1.20", "1.21", "1.22"]
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: ${{ matrix.go-version }}
|
||||||
- run: go get -t -v ./...
|
- run: go get -t -v ./...
|
||||||
- run: go test -race -coverprofile=coverage.out -covermode=atomic -timeout 60s
|
- run: go test -race -coverprofile=coverage.out -covermode=atomic -timeout 60s
|
||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user