Commit graph

47 commits

Author SHA1 Message Date
Alexander Aleksandrovič Klimov
7e6db393a6
GHA: also test MySQL 8 2024-07-12 16:37:03 +02:00
Julian Brost
05c8b7d103 GitHub Actions: remove version check
This check turned out to be not very helpful. Typically, you will first
increase the version number in the source, make it a PR, review it, merge it
and only aftewards, tag the version. In this PR, the check is always
complaining if you did not forget to do something.
2023-08-08 15:06:27 +02:00
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
Alexander A. Klimov
7bd475b2fe GHA: handle changed interface of Icinga/docker-icingadb 2023-02-02 10:38:55 +01:00
Alexander A. Klimov
2f5d5ea931 cmd/ido2icingadb: compute previous progress 2022-10-11 10:17:47 +02:00
Alexander A. Klimov
05c736aa8f .../compliance/check-licenses.sh: also check UNLICENSE 2022-10-11 10:17:47 +02: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
Eric Lippmann
8544878695 CI: Check version 2022-06-29 15:42:04 +02:00
Julian Brost
873eb9cd3e Integration tests: use separate artifact names for MySQL/PostgreSQL
If I remember correctly, some time ago you were able to download artifacts from
the job page, i.e. there was no issues with two jobs using the same artifact
name within one workflow. Now it looks like you can only download the artifacts
from the workflow page, so this commit allows you to download both files from
there.
2022-05-17 15:36:12 +02:00
Julian Brost
5ea82188dc SLA reporting: tests for the SQL stored function 2022-05-13 12:04:47 +02:00
Alexander A. Klimov
55bb574304 Require Go v1.18+ 2022-03-30 13:40:24 +02:00
Alexander Aleksandrovič Klimov
d80543992d
Remove obsolete comment
That Go version doesn’t differ from the mainly used one.
2022-03-30 13:02:40 +02:00
Julian Brost
02fd728579 Port integration tests to PostgreSQL 2022-03-15 15:17:19 +01:00
Alexander A. Klimov
23d8938251 .github/workflows/compliance/anonymize-license.pl: handle github.com/lib/pq license
refs #136
2022-03-09 18:49:45 +01: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
Julian Brost
8bacc4dd96
Run daily integration tests
As those also implicitly test code in the icinga2 repo, it makes sense to run them periodically to notice if we break something over there.
2022-01-11 14:38:10 +01:00
Alexander A. Klimov
777fbe0a3c .github/workflows/compliance.yml: assert GPLv2 compatibility of all deps' licenses 2021-11-09 15:12:41 +01:00
Alexander A. Klimov
6c02a8f30f .github/workflows/compliance/anonymize-license.pl: replace redundant info in license text 2021-11-09 15:12:41 +01:00
Alexander A. Klimov
12a6d525e1 .github/workflows/compliance/ls-deps.pl: extract all 3rd-party deps
... from `go list -deps` input.
2021-11-09 15:12:41 +01:00
Julian Brost
113c7349fd Automatically run integration tests using GitHub Actions 2021-09-02 10:15:21 +02:00
Eric Lippmann
a5e5adba54 Merge branch 'v1.0.0-rc2-rewrite' 2021-05-25 23:31:13 +02:00
Eric Lippmann
738fa1bddb Remove obsolete code 2021-05-25 23:29:20 +02: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
Julian Brost
4a8be8b296 Set an explicit timeout for go test
The default value is 10 minutes which is the same as the whole action
has as a timeout. If go test itself aborts before, we should hopefully
get more information on what went wrong.
2021-02-19 10:51:54 +01:00
Alexander Aleksandrovič Klimov
cdd98c4f10
Merge pull request #226 from Icinga/feature/mariadb104
Keep testing w/ MariaDB v10.4
2020-10-27 11:42:15 +01:00
Alexander Aleksandrovič Klimov
aa446de8dc
Keep testing w/ MariaDB v10.4
... after v10.5 was released.
2020-10-27 11:37:42 +01:00
Alexander Aleksandrovič Klimov
ed2b517fe4
Test also w/ Redis v6+ 2020-10-27 11:27:02 +01:00
Alexander Aleksandrovič Klimov
1ff02283d7
Keep testing w/ Go v1.14
... after v1.15 was released.
2020-10-27 11:19:48 +01:00
Alexander A. Klimov
f7445be06d GitHub actions: build Docker images 2020-06-24 11:34:31 +02:00
Alexander A. Klimov
12825fb14a GitHub actions: test Go v1.13 2020-04-30 12:25:49 +02:00
Noah Hilverling
600154657f
Merge pull request #99 from Icinga/feature/ci-mysql-5-6
CI: test also with MySQL 5.6 and 5.5
2020-02-10 14:01:40 +01:00
Alexander A. Klimov
e07a5a2f16 CI: test also with MySQL 5.6 and 5.5 2019-12-13 14:57:58 +01:00
Alexander A. Klimov
e123872962 CI: also test with MariaDB 10.1 2019-12-12 16:02:59 +01:00
Alexander A. Klimov
23f54965c8 Extend CI matrix 2019-12-10 17:54:25 +01:00
Noah Hilverling
533933dcfe
Merge pull request #89 from Icinga/bugfix/ci-push-pr
CI: run only once for PRs
2019-12-10 17:27:52 +01:00
Alexander A. Klimov
2c4984c6e7 CI: run only once for PRs 2019-12-10 16:49:45 +01:00
Alexander A. Klimov
ee0526fc0a CI: add -race to go test 2019-12-10 13:58:05 +01:00
Noah Hilverling
af65d6ee67 Actions: Also run on PR 2019-12-02 16:01:34 +01:00
Markus Frosch
9216aa3d95 ci: Import schema for tests 2019-11-28 14:38:46 +01:00
Markus Frosch
29b777ecd0 Create github action for go build 2019-11-28 14:25:16 +01:00