mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Add Go 1.20 to Travis
- Use golang-ci in go test workflow Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
committed by
Waldemar Quevedo
parent
ab5eeff1c3
commit
64b2f5b364
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}
|
||||
|
||||
16
.github/workflows/go-test.yaml
vendored
16
.github/workflows/go-test.yaml
vendored
@@ -5,9 +5,7 @@ jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
# This should be quoted or use .x, but should not be unquoted.
|
||||
# Remember that a YAML bare float drops trailing zeroes.
|
||||
go: ['1.19']
|
||||
go: ["1.20"]
|
||||
|
||||
env:
|
||||
GOPATH: /home/runner/work/nats-server
|
||||
@@ -21,25 +19,19 @@ jobs:
|
||||
path: src/github.com/nats-io/nats-server
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
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