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:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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]
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Install staticcheck
|
- 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
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Update PATH
|
- name: Update PATH
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
- name: Vet
|
- name: Vet
|
||||||
run: go vet ./...
|
run: go vet ./...
|
||||||
- name: Staticcheck
|
- name: Staticcheck
|
||||||
if: matrix.go-version != '1.16.x'
|
if: matrix.go-version == '1.20.x'
|
||||||
run: staticcheck ./...
|
run: staticcheck ./...
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -race ./...
|
run: go test -race ./...
|
Loading…
Reference in New Issue