mirror of https://github.com/spf13/afero.git
github: Update Go build matrix
This commit is contained in:
parent
3b1116bc67
commit
a6023d20a1
|
@ -7,7 +7,7 @@ jobs:
|
|||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.16.x,1.17.x,1.18.x]
|
||||
go-version: [1.18.x,1.19.x,1.20.x]
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
|||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Install staticcheck
|
||||
if: matrix.go-version != '1.16.x'
|
||||
if: matrix.go-version == '1.20.x'
|
||||
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
shell: bash
|
||||
- name: Update PATH
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
- name: Vet
|
||||
run: go vet ./...
|
||||
- name: Staticcheck
|
||||
if: matrix.go-version != '1.16.x'
|
||||
if: matrix.go-version == '1.20.x'
|
||||
run: staticcheck ./...
|
||||
- name: Test
|
||||
run: go test -race ./...
|
Loading…
Reference in New Issue