mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Bump v2.9 CI and nightlies to Go 1.20
Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
committed by
Waldemar Quevedo
parent
8b35c01637
commit
a6f7f5476e
2
.github/actions/nightly-release/action.yaml
vendored
2
.github/actions/nightly-release/action.yaml
vendored
@@ -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 }}"
|
||||
|
||||
|
||||
4
.github/workflows/cov.yaml
vendored
4
.github/workflows/cov.yaml
vendored
@@ -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}
|
||||
|
||||
15
.github/workflows/go-test.yaml
vendored
15
.github/workflows/go-test.yaml
vendored
@@ -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}
|
||||
|
||||
2
.github/workflows/nightly.yaml
vendored
2
.github/workflows/nightly.yaml
vendored
@@ -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 }}"
|
||||
|
||||
2
.github/workflows/rc_nightly.yaml
vendored
2
.github/workflows/rc_nightly.yaml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user