feat: setup CI for mariadb support

This commit is contained in:
realaravinth 2022-07-20 17:38:47 +05:30
parent 9371416398
commit 0b2af2f900
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 34 additions and 2 deletions

View file

@ -34,11 +34,27 @@ jobs:
--health-retries 5
ports:
- 5432:5432
mcaptcha-redis:
image: mcaptcha/cache
ports:
- 6379:6379
maria:
image: mariadb
env: MARIADB_USER:maria
MARIADB_PASSWORD:password
MARIADB_ROOT_PASSWORD:password
MARIADB_DATABASE:maria
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=10
ports:
- 3306:3306
steps:
- uses: actions/checkout@v2
- name: ⚡ Cache

View file

@ -8,7 +8,8 @@ on:
push:
branches:
- master
- db-abstract
- "*"
- !gh-pages
jobs:
build_and_test:
@ -37,13 +38,14 @@ jobs:
--health-retries 5
ports:
- 5432:5432
mcaptcha-redis:
image: mcaptcha/cache
ports:
- 6379:6379
mcaptcha-smtp:
image: maildev/maildev
env:
env:
MAILDEV_WEB_PORT: "1080"
MAILDEV_INCOMING_USER: "admin"
MAILDEV_INCOMING_PASS: "password"
@ -51,6 +53,20 @@ jobs:
- 1080:1080
- 10025:1025
maria:
image: mariadb
env: MARIADB_USER:maria
MARIADB_PASSWORD:password
MARIADB_ROOT_PASSWORD:password
MARIADB_DATABASE:maria
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=10
ports:
- 3306:3306
steps:
- uses: actions/checkout@v2
- name: ⚡ Cache