From 5aa74395c02c3d0a995aad8ea270c33721b72a57 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 5 Apr 2024 12:36:02 +0200 Subject: [PATCH] Integration tests: include MariaDB as well just to be sure we're compatible with this RDBMS and not only MySQL. --- .github/workflows/integration-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 623b674d9..4e0723ec6 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -17,8 +17,13 @@ jobs: database: - name: MySQL type: mysql + image: mysql:latest + - name: MariaDB + type: mysql + image: mariadb:latest - name: PostgreSQL type: pgsql + image: postgres:latest name: ${{ matrix.database.name }} runs-on: ubuntu-latest @@ -41,6 +46,8 @@ jobs: run: ./icingadb-test -icingatesting.debuglog debug.log -test.v env: ICINGADB_TESTS_DATABASE_TYPE: ${{ matrix.database.type }} + ICINGA_TESTING_MYSQL_IMAGE: ${{ matrix.database.image }} + ICINGA_TESTING_PGSQL_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 @@ -51,6 +58,6 @@ jobs: if: ${{ always() }} uses: actions/upload-artifact@v2 with: - name: ${{ matrix.database.type }}-debug.log.xz + name: ${{ matrix.database.name }}-debug.log.xz path: debug.log.xz retention-days: 1