mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Use Go 1.21 for nightlies, Dockerfile, code coverage, bump go.mod version to Go 1.20
Signed-off-by: Neil Twigg <neil@nats.io>
This commit is contained in:
2
.github/workflows/cov.yaml
vendored
2
.github/workflows/cov.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.20.x"
|
||||
go-version: "1.21.x"
|
||||
|
||||
- name: Run code coverage
|
||||
shell: bash --noprofile --norc -x -eo pipefail {0}
|
||||
|
||||
2
.github/workflows/go-test.yaml
vendored
2
.github/workflows/go-test.yaml
vendored
@@ -5,7 +5,7 @@ jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go: ["1.20"]
|
||||
go: ["1.21"]
|
||||
|
||||
env:
|
||||
GOPATH: /home/runner/work/nats-server
|
||||
|
||||
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.20"
|
||||
go: "1.21"
|
||||
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.20"
|
||||
go: "1.21"
|
||||
workdir: src/github.com/nats-io/nats-server
|
||||
label: nightly-main
|
||||
hub_username: "${{ secrets.DOCKER_USERNAME }}"
|
||||
|
||||
@@ -6,8 +6,8 @@ vm:
|
||||
|
||||
language: go
|
||||
go:
|
||||
# This should be quoted or use .x, but should not be unquoted.
|
||||
# Remember that a YAML bare float drops trailing zeroes.
|
||||
# This should be quoted or use .x, but should not be unquoted.
|
||||
# Remember that a YAML bare float drops trailing zeroes.
|
||||
- "1.21.x"
|
||||
- "1.20.x"
|
||||
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
- name: "Run all tests from all other packages"
|
||||
env: TEST_SUITE=non_srv_pkg_tests
|
||||
- name: "Compile with older Go release"
|
||||
go: "1.19.12"
|
||||
go: "1.20"
|
||||
env: TEST_SUITE=build_only
|
||||
|
||||
script: ./scripts/runTestsOnTravis.sh $TEST_SUITE
|
||||
@@ -52,4 +52,4 @@ deploy:
|
||||
script: curl -sL http://git.io/goreleaser | bash
|
||||
on:
|
||||
tags: true
|
||||
condition: ($TRAVIS_GO_VERSION =~ 1.20) && ($TEST_SUITE = "compile")
|
||||
condition: ($TRAVIS_GO_VERSION =~ 1.21) && ($TEST_SUITE = "compile")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.20-alpine AS builder
|
||||
FROM golang:1.21-alpine AS builder
|
||||
|
||||
ARG VERSION="nightly"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user