Commit graph

12 commits

Author SHA1 Message Date
Julian Brost
74686888f1 GitHub Actions: also run on support branches 2023-08-08 11:59:14 +02:00
Julian Brost
704111a262 GitHub Actions: change master to main
The branch was renamed, the same change has to be done in the GitHub Actions
config so that the workflow continue to run.
2023-08-07 15:32:15 +02:00
Julian Brost
ab42fab540 GitHub Actions: use actions/setup-go@v4 and go-version: 1.x
There was a mix of diferent action and Go versions specified throughout the
GitHub Actions workflow configs. In general, we want to be compatible with the
latest Go 1.x version, so just specify that instead of bumping versions
everywhere when necessary.

At the same time, bump the actions/setup-go to v4, the latest currently
available version. This prefers versions already cached on the runner and
enables automatic caching for dependencies.
2023-08-04 12:50:31 +02:00
Julian Brost
0baaf74174
GitHub Actions: run Go lint job with at least 1.19
The jobs were failing and the output contained: "note: module requires Go 1.19" (e.g. https://github.com/Icinga/icingadb/actions/runs/4233417770/jobs/7354361633)
2023-02-21 15:08:56 +01:00
Julian Brost
5d2c8fc10b Show diff of dependencies in GitHub Actions
dependabot adds a link showing the diff of the dependency but when there are
changes in indirect dependencies, these have to be diffed manually. This commit
vendors the dependencies before and after a PR and outputs the diff.
2022-08-19 16:03:55 +02:00
Alexander A. Klimov
55bb574304 Require Go v1.18+ 2022-03-30 13:40:24 +02:00
Alexander A. Klimov
eb46325744 GHA: use latest staticcheck version
not a hardcoded one.

This action takes care of that.
2022-01-31 18:17:46 +01:00
Alexander A. Klimov
6f54f94e99 GHA: go mod tidy
If this changes go.*, complain about the non-perfect file(s).
2022-01-21 11:02:13 +01:00
Alexander A. Klimov
5b3f989f94 gofmt: behave like Goland 2021-05-25 11:09:23 +02:00
Alexander A. Klimov
0c160d2b94 GitHub actions: show what exactly is not well formatted 2021-05-25 11:07:26 +02:00
Alexander A. Klimov
b2b3f2a998 GitHub actions: separate linters 2021-05-25 10:59:10 +02:00
Henrik Triem
decccdda99 Include a Github Actions test 2021-05-25 10:59:10 +02:00