47 Commits

Author SHA1 Message Date
Ivan Kozlovic
0a4f2e642e Fixed code coverage GithHub Action
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2023-10-09 13:07:54 -06:00
Waldemar Quevedo
72430e7998 Rename MQTT test.yaml to MQTT_test.yaml (#4637) 2023-10-06 15:39:51 -07:00
Lev
beee6fc72a [FIXED] MQTT PUBREL header incompatibility (#4616)
https://hivemq.github.io/mqtt-cli/docs/test/ pointed out the
incompatibility.
2023-10-05 08:07:50 -07:00
Byron Ruth
8b089b4a12 Change ref to main
Signed-off-by: Byron Ruth <byron@nats.io>
2023-09-15 16:12:46 -04:00
Waldemar Quevedo
643d49d8fe Update docker nightly builds
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-09-13 07:39:11 -07:00
Derek Collison
11f0ea99a4 Merge branch 'main' into dev
Signed-off-by: Derek Collison <derek@nats.io>
2023-09-06 13:33:47 -07:00
Sylvain Rabot
a6f7f5476e Bump v2.9 CI and nightlies to Go 1.20
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-09-04 11:43:22 -07:00
Neil Twigg
d08eeee94d 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>
2023-08-31 09:02:20 +01:00
Sylvain Rabot
64b2f5b364 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>
2023-08-07 17:12:20 -07:00
Derek Collison
fbfa593b3d Merge branch 'main' into dev 2023-05-17 16:48:47 -07:00
Byron Ruth
f764853e00 Disable auto-closing, increase stale threshold
Signed-off-by: Byron Ruth <byron@nats.io>
2023-05-15 09:14:31 -04:00
Byron Ruth
7e9a427d13 Fix workflow structure
Signed-off-by: Byron Ruth <byron@nats.io>
2023-05-14 13:19:30 -04:00
Byron Ruth
92c70712de Add workflow for stale issues
Signed-off-by: Byron Ruth <byron@nats.io>
2023-05-14 13:06:01 -04:00
Phil Pennock
97df36e7eb Bump GH Actions versions (Go; node12 deprecation)
Bump various GitHub Actions versions to move away from those using the
deprecated node.js 12 runtime, and so remove the warnings.

For the coveralls action, I switched to just `@v2`, per their example docs and
as we do for most actions, instead of major.minor.patch.

For Golang, update one 1.16 to 1.19, and quote the remaining unquoted
instances, even though they had `.x` in there so had to parse as strings,
because we're just switching to always-quoting for consistency.
2023-05-07 22:01:34 -04:00
Derek Collison
01a2c0472d Merge branch 'main' into dev 2023-04-03 15:33:12 -07:00
Neil Twigg
7f9e6dad38 Allow overriding target branch in on-demand nightly image builds
Signed-off-by: Neil Twigg <neil@nats.io>
2023-04-03 17:00:22 +01:00
Derek Collison
86f78b49a7 Merge branch 'main' into dev 2023-03-16 12:10:21 -07:00
R.I.Pienaar
447a174065 move dev nightly to same shared action
Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-16 11:23:41 +01:00
Derek Collison
80d0adede4 Merge branch 'main' into dev 2023-03-15 20:26:13 -07:00
R.I.Pienaar
2e362fee40 resolve access to secrets and a few other issues
Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-15 13:41:30 +01:00
R.I.Pienaar
54da8b4f8a fix uses for embedded action in nightly build
The uses option requires a path that start with . for local files

Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-15 11:44:56 +01:00
R.I.Pienaar
d3c8fddef3 fix path to actions file
Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-14 21:43:17 +01:00
R.I.Pienaar
a8f33d594c checkout code before calling action
This ensures that the action can be found.

Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-14 19:47:20 +01:00
R.I.Pienaar
204c53dcb2 adds a nightly build action and build nightly rc from main
Signed-off-by: R.I.Pienaar <rip@devco.net>
2023-03-14 19:20:18 +01:00
Phil Pennock
2ac72d92bf YAML engineering: quote go version string
We're currently using Go 1.19; we'll switch to 1.20 when the NATS Maintainers
make the call to switch.  Prepare by making sure that 1.20 won't turn into 1.2
instead, by quoting the string to be updated and adding a warning.
2023-02-07 17:32:20 -05:00
Ivan Kozlovic
4187413281 Change nightly to build from dev instead of main [ci skip]
Also updated some of the actions to avoid some deprecation warnings

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-11-02 11:52:36 -06:00
Ivan Kozlovic
a98af54d92 Fix some flappers and update Go version for nightly code coverage
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 16:42:43 -06:00
Ivan Kozlovic
3c9a7cc6e5 Move to Go 1.19, remote io/util, fix data race and a flapper
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-08-05 09:55:37 -06:00
Ivan Kozlovic
ab1b86ef96 Update nightly to Go 1.18
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-07-29 17:15:12 -06:00
Ivan Kozlovic
92755d3329 Fixed GithubAction code coverage to handle test panics
We are ok with a flapper or two, because they should not affect
code coverage that much, so it is better to have those and publish
code coverage than to have to recycle the whole test suite until
we get no test failure.

However, if there is a test panic, then all other tests within this
package will NOT run, which then would have possibly a massive
impact in the code coverage percentage.

These changes will ensure that the run fails if one of the code
coverage output is "empty" (it is actually not empty, but the
initial content is "mode: atomic" and then whe code coverage is
complete, it gets filled with actual code coverage data).
On failure, the push to coverall will not happen.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-05-02 14:51:19 -06:00
Ivan Kozlovic
0e2ab5eeea Changes to tests that run on Travis
- Remove code coverage from Travis and add it to a GitHub Action
that will be run as a nightly.
- Use tag builds to exclude some tests, such as the "norace" or
JS tests. Since "go test" does not support "negative" regexs, there
is no other way.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-04-26 14:11:31 -06:00
Ivan Kozlovic
609a9ba2da Nightly: set Go version to 1.17 and use latest goreleaser
[ci skip]

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-26 15:29:41 -07:00
Ivan Kozlovic
59eef192cd Prepare for release v2.7.0, start with v2.7.0-rc1
Since we have never released with goreleaser and GO111MODULE=on
and have removed vendor directory, we are going to push a
v2.7.0-rc1 tag. If the goreleaser process works fine and submit
the draft release correctly, we will not do an actual v2.7.0-rc1
release. Instead, we will follow up immediately with the v2.7.0
tag and the proper release.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-13 16:15:51 -07:00
Derek Collison
d18bb6288a No race flag for GHA [ci skip]
Signed-off-by: Derek Collison <derek@nats.io>
2021-08-14 16:43:21 -07:00
Derek Collison
f3067cda94 Bypass norace tests for GHA
Signed-off-by: Derek Collison <derek@nats.io>
2021-08-14 13:52:37 -07:00
R.I.Pienaar
0d391b02eb richer api errors proposal
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-05-26 08:04:50 +02:00
R.I.Pienaar
8ebf2515ce fix nightly builds
goreleaser now only function with GO111MODULES on, as will
much of the go eco system soon and we will need to move also.

For now use a version that still supports it

Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-03-26 12:51:18 +01:00
Derek Collison
ce52ebd9fb Bump to go 1.16
Signed-off-by: Derek Collison <derek@nats.io>
2021-03-18 12:57:20 -07:00
R.I.Pienaar
162fd77161 upgrade nightlies to go 1.16
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-02-28 20:03:10 +01:00
R.I.Pienaar
3521d4c463 revert to previous checkout version
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-02-16 11:50:13 +01:00
R.I.Pienaar
1c27acb846 enable manual triggers of nightly builds
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-02-15 21:17:11 +01:00
Derek Collison
542d352017 Just run 1.15, don't need vendored installs
Signed-off-by: Derek Collison <derek@nats.io>
2021-01-25 17:42:21 -08:00
R.I.Pienaar
b852a9ba84 use go 1.15 for nightly builds
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-01-07 13:54:50 +01:00
Waldemar Quevedo
f0c144203b Add Go 1.15 version to CI
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
2020-09-09 07:21:32 -07:00
R.I.Pienaar
04271d7ead fix nightly schedule
Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-06-05 12:21:36 +02:00
R.I.Pienaar
8f917f1068 add nightly docker build workflows
Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-06-04 12:57:35 +02:00
R.I.Pienaar
71144b37c5 initial gh actions
Adds basic GH Workflow that runs tests on push and pr, coverage
is disabled.

The intention is to soft switch to GH Actions by just letting them
run next to travs for a while to get a feel for things

Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-05-21 13:49:20 +02:00