Bump v2.9 CI and nightlies to Go 1.20

Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
Sylvain Rabot
2023-07-10 21:56:53 +02:00
committed by Waldemar Quevedo
parent 8b35c01637
commit a6f7f5476e
8 changed files with 14 additions and 23 deletions

View File

@@ -26,7 +26,7 @@ runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "${{ inputs.go }}"

View File

@@ -21,9 +21,9 @@ jobs:
ref: dev
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: "1.20.x"
- name: Run code coverage
shell: bash --noprofile --norc -x -eo pipefail {0}

View File

@@ -5,8 +5,7 @@ jobs:
test:
strategy:
matrix:
go: [1.16]
go: ["1.20"]
env:
GOPATH: /home/runner/work/nats-server
GO111MODULE: "on"
@@ -19,25 +18,19 @@ jobs:
path: src/github.com/nats-io/nats-server
- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: ${{matrix.go}}
- name: Install deps
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go get -u honnef.co/go/tools/cmd/staticcheck
go get -u github.com/client9/misspell/cmd/misspell
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
- name: Lint
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
GO_LIST=$(go list ./...)
go build
$(exit $(go fmt $GO_LIST | wc -l))
go vet $GO_LIST
find . -type f -name "*.go" | xargs $GOPATH/bin/misspell -error -locale US
$GOPATH/bin/staticcheck $GO_LIST
golangci-lint run
- name: Run tests
shell: bash --noprofile --norc -x -eo pipefail {0}

View File

@@ -22,7 +22,7 @@ jobs:
- uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
go: "1.19"
go: "1.20"
workdir: src/github.com/nats-io/nats-server
label: nightly
hub_username: "${{ secrets.DOCKER_USERNAME }}"

View File

@@ -22,7 +22,7 @@ jobs:
- uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
go: "1.19"
go: "1.20"
workdir: src/github.com/nats-io/nats-server
label: nightly-main
hub_username: "${{ secrets.DOCKER_USERNAME }}"