Skip to content

Commit

Permalink
Integration tests: include MariaDB as well
Browse files Browse the repository at this point in the history
just to be sure we're compatible with this RDBMS and not only MySQL.
  • Loading branch information
Al2Klimov committed Apr 5, 2024
1 parent 75b0a0d commit 5aa7439
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 5aa7439

Please sign in to comment.