forked from composite-primary-keys/composite_primary_keys
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.23 KB
/
mariadb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: mariadb
on: [push, pull_request]
jobs:
mariadb_test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [2.5, 2.6, 2.7, "3.0", 3.1]
runs-on: ${{matrix.os}}
services:
mariadb:
image: mariadb
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: github
MYSQL_PASSWORD: github
MYSQL_DATABASE: composite_primary_keys_unittest
options: >-
--health-cmd "healthcheck.sh --connect --innodb_initialized"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
BUNDLE_WITHOUT: "db2 oracle sqlserver sqlite postgresql"
BUNDLE_JOBS: 4
BUNDLE_PATH: vendor/bundle
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Setup database config
run: cp test/connections/databases.ci.yml test/connections/databases.yml
- name: Prepare databases
run: bundle exec rake mysql:rebuild_database
env:
mariadb_ROOT_PASSWORD: root
- name: mariadb test
run: bundle exec rake mysql:test