diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b0dbf1251..bf64775d4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -15,12 +15,27 @@ jobs: fail-fast: false matrix: database: - - name: mysql - pretty_name: MySQL - - name: pgsql - pretty_name: PostgreSQL + - name: MySQL + type: MYSQL + image: mysql:latest + - name: MySQL (minimum required version) + type: MYSQL + image: mysql:8.0.0 + - name: MariaDB + type: MYSQL + image: mariadb:latest + - name: MariaDB (minimum required version) + type: MYSQL + # Actually we support v10.2.2+, but Docker Hub doesn't. + image: mariadb:10.2.5 + - name: PostgreSQL + type: PGSQL + image: postgres:latest + - name: PostgreSQL (minimum required version) + type: PGSQL + image: postgres:9.6.0 - name: ${{ matrix.database.pretty_name }} + name: ${{ matrix.database.name }} runs-on: ubuntu-latest steps: @@ -40,7 +55,8 @@ jobs: - name: Run Integration Tests run: ./icingadb-test -icingatesting.debuglog debug.log -test.v env: - ICINGADB_TESTS_DATABASE_TYPE: ${{ matrix.database.name }} + ICINGADB_TESTS_DATABASE_TYPE: ${{ matrix.database.type }} + ICINGA_TESTING_${{ matrix.database.type }}_IMAGE: ${{ matrix.database.image }} ICINGA_TESTING_ICINGADB_BINARY: ${{ github.workspace }}/icingadb ICINGA_TESTING_ICINGADB_SCHEMA_MYSQL: ${{ github.workspace }}/schema/mysql/schema.sql ICINGA_TESTING_ICINGADB_SCHEMA_PGSQL: ${{ github.workspace }}/schema/pgsql/schema.sql diff --git a/tests/go.mod b/tests/go.mod index 222329557..c12ffe4f2 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -7,7 +7,7 @@ require ( github.com/goccy/go-yaml v1.13.0 github.com/google/uuid v1.6.0 github.com/icinga/icinga-go-library v0.7.2 - github.com/icinga/icinga-testing v0.0.0-20240322142451-494ccd6d03e8 + github.com/icinga/icinga-testing v0.0.0-20250901101810-43491aa4f931 github.com/jmoiron/sqlx v1.4.0 github.com/lib/pq v1.10.9 github.com/redis/go-redis/v9 v9.14.0 diff --git a/tests/go.sum b/tests/go.sum index 1327645ad..522251874 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -72,8 +72,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1 github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= github.com/icinga/icinga-go-library v0.7.2 h1:6ilUeE9F9OqxxJXNR9URWDf6zOqsdhjjR9w1MUXY9Kg= github.com/icinga/icinga-go-library v0.7.2/go.mod h1:HZTiYD+N+9FZIVpPdUEJWJnc6sLvrIRO03jvkdkmUEU= -github.com/icinga/icinga-testing v0.0.0-20240322142451-494ccd6d03e8 h1:PI+39IY1BjN24JC3B6Jy0rhwm3hqC4SnQFxbZjXOaHk= -github.com/icinga/icinga-testing v0.0.0-20240322142451-494ccd6d03e8/go.mod h1:xjNiwePgnSVKJWPG/iFG7pNOibU/OWp01Zdl08o+EeI= +github.com/icinga/icinga-testing v0.0.0-20250901101810-43491aa4f931 h1:YdZ7XuBVbGimF1zrZq/y7y7faLb2CzbccVzHzHdRODY= +github.com/icinga/icinga-testing v0.0.0-20250901101810-43491aa4f931/go.mod h1:xjNiwePgnSVKJWPG/iFG7pNOibU/OWp01Zdl08o+EeI= github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=