mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: setup CI for mariadb support
This commit is contained in:
16
.github/workflows/coverage.yml
vendored
16
.github/workflows/coverage.yml
vendored
@@ -34,11 +34,27 @@ jobs:
|
|||||||
--health-retries 5
|
--health-retries 5
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
mcaptcha-redis:
|
mcaptcha-redis:
|
||||||
image: mcaptcha/cache
|
image: mcaptcha/cache
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: ⚡ Cache
|
- name: ⚡ Cache
|
||||||
|
|||||||
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
@@ -8,7 +8,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- db-abstract
|
- "*"
|
||||||
|
- !gh-pages
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
@@ -37,13 +38,14 @@ jobs:
|
|||||||
--health-retries 5
|
--health-retries 5
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
mcaptcha-redis:
|
mcaptcha-redis:
|
||||||
image: mcaptcha/cache
|
image: mcaptcha/cache
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
mcaptcha-smtp:
|
mcaptcha-smtp:
|
||||||
image: maildev/maildev
|
image: maildev/maildev
|
||||||
env:
|
env:
|
||||||
MAILDEV_WEB_PORT: "1080"
|
MAILDEV_WEB_PORT: "1080"
|
||||||
MAILDEV_INCOMING_USER: "admin"
|
MAILDEV_INCOMING_USER: "admin"
|
||||||
MAILDEV_INCOMING_PASS: "password"
|
MAILDEV_INCOMING_PASS: "password"
|
||||||
@@ -51,6 +53,20 @@ jobs:
|
|||||||
- 1080:1080
|
- 1080:1080
|
||||||
- 10025:1025
|
- 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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: ⚡ Cache
|
- name: ⚡ Cache
|
||||||
|
|||||||
Reference in New Issue
Block a user