diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 812b118b5..f6531feda 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -15,12 +15,17 @@ jobs: fail-fast: false matrix: database: - - name: mysql - pretty_name: MySQL - - name: pgsql - pretty_name: PostgreSQL + - name: MySQL + type: MYSQL + image: mysql:latest + - name: MariaDB + type: MYSQL + image: mariadb:latest + - name: PostgreSQL + type: PGSQL + image: postgres:latest - name: ${{ matrix.database.pretty_name }} + name: ${{ matrix.database.name }} runs-on: ubuntu-latest steps: @@ -40,7 +45,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