Skip to content

Commit

Permalink
add github tests for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Aug 21, 2024
1 parent e41622f commit 966d952
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ jobs:
]
name: Perl ${{ matrix.perl }}
services:
mysql:
image: yobasystems/alpine-mariadb
env:
MYSQL_DATABASE: catmandu_dbi
MYSQL_USER: catmandu_dbi
MYSQL_PASSWORD: catmandu_dbi
MYSQL_ROOT_PASSWORD: mysql
MYSQL_CHARSET: utf8
MYSQL_COLLATION: utf8_general_ci
ports:
- 3306:3306
options: >-
--health-cmd mysqladmin ping -h localhost -p mysql
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres:16-alpine
env:
Expand Down Expand Up @@ -47,4 +63,7 @@ jobs:
export CATMANDU_DBI_TEST_PG_DSN="dbi:Pg:dbname=catmandu_dbi;host=localhost"
export CATMANDU_DBI_TEST_PG_USERNAME=catmandu_dbi
export CATMANDU_DBI_TEST_PG_PASSWORD=catmandu_dbi
export CATMANDU_DBI_TEST_MYSQL_DSN="dbi:mysql:database=catmandu_dbi;host=localhost"
export CATMANDU_DBI_TEST_MYSQL_USERNAME=catmandu_dbi
export CATMANDU_DBI_TEST_MYSQL_PASSWORD=catmandu_dbi
prove -lr t

0 comments on commit 966d952

Please sign in to comment.