mirror of https://github.com/spf13/cast.git
github: Bump versions
This commit is contained in:
parent
48ddde5701
commit
6c5f3fcc57
|
@ -9,23 +9,24 @@ jobs:
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.19.x, 1.20.x, 1.21.x]
|
go-version: [1.20.x, 1.21.x, 1.22.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:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Install staticcheck
|
- name: Install staticcheck
|
||||||
if: matrix.go-version == '1.21.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
|
||||||
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Fmt
|
- name: Fmt
|
||||||
if: matrix.platform != 'windows-latest' # :(
|
if: matrix.platform != 'windows-latest' # :(
|
||||||
run: "diff <(gofmt -d .) <(printf '')"
|
run: "diff <(gofmt -d .) <(printf '')"
|
||||||
|
@ -33,7 +34,6 @@ jobs:
|
||||||
- name: Vet
|
- name: Vet
|
||||||
run: go vet ./...
|
run: go vet ./...
|
||||||
- name: Staticcheck
|
- name: Staticcheck
|
||||||
if: matrix.go-version == '1.21.x'
|
|
||||||
run: staticcheck ./...
|
run: staticcheck ./...
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -race ./...
|
run: go test -race ./...
|
||||||
|
|
Loading…
Reference in New Issue