9 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
Byron Ruth
8b089b4a12 Change ref to main
Signed-off-by: Byron Ruth <byron@nats.io>
2023-09-15 16:12:46 -04: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
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
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
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