From 3a6f5761f3731fd5d9ee47befbd4f8074a01994f Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Wed, 20 Sep 2023 01:01:08 +0200 Subject: [PATCH] go1.20 --- .github/workflows/test.yml | 58 +++++++++++++++++++------------------- go.mod | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 177bd69..b8fb396 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,35 +4,35 @@ jobs: test: strategy: matrix: - go-version: [1.13.x] + go-version: [1.20.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - - name: Install Go - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go-version }} - - name: Install staticcheck - run: pwd && cd .. && go get -v -u honnef.co/go/tools/cmd/staticcheck && cd - - shell: bash - - name: Install golint - run: pwd && cd .. && go get -v -u golang.org/x/lint/golint && cd - - shell: bash - - name: Update PATH - # https://github.com/actions/setup-go/issues/12#issuecomment-524631719 - run: echo "##[add-path]$(go env GOPATH)/bin" - shell: bash - - name: Checkout code - uses: actions/checkout@v1 - - name: Fmt - if: matrix.platform != 'windows-latest' # :( - run: "F=$(gofmt -l .) ; if [[ $F ]] ; then echo $F ; exit 1 ; fi" - shell: bash - - name: Vet - run: go vet ./... - - name: Staticcheck - run: staticcheck ./... - - name: Lint - run: golint ./... - - name: Test - run: go test -race ./... + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Install staticcheck + run: pwd && cd .. && go get -v -u honnef.co/go/tools/cmd/staticcheck && cd - + shell: bash + - name: Install golint + run: pwd && cd .. && go get -v -u golang.org/x/lint/golint && cd - + shell: bash + - name: Update PATH + # https://github.com/actions/setup-go/issues/12#issuecomment-524631719 + run: echo "##[add-path]$(go env GOPATH)/bin" + shell: bash + - name: Checkout code + uses: actions/checkout@v1 + - name: Fmt + if: matrix.platform != 'windows-latest' # :( + run: "F=$(gofmt -l .) ; if [[ $F ]] ; then echo $F ; exit 1 ; fi" + shell: bash + - name: Vet + run: go vet ./... + - name: Staticcheck + run: staticcheck ./... + - name: Lint + run: golint ./... + - name: Test + run: go test -race ./... diff --git a/go.mod b/go.mod index b129723..caa7fc4 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/oklog/run -go 1.13 +go 1.20