Skip to content

Commit

Permalink
add mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Aug 9, 2024
1 parent 789af4d commit fe4cc64
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,33 @@ jobs:
strategy:
matrix:
ruby: ['3.3', '3.2', '3.1']
database: ['sqlite', 'mysql', 'postgres']
database: ['sqlite', 'mysql', 'postgres', 'mariadb']
services:
mysql:
if: matrix.database == 'mysql'
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
postgres:
if: matrix.database == 'postgres'
image: postgres:14
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
mariadb:
if: matrix.database == 'mariadb'
image: 'mariadb:11'
env:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: test
ports:
- 3306:3306
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -47,10 +57,13 @@ jobs:
echo "DATABASE_URL=sqlite3::memory:" >> $GITHUB_ENV
;;
mysql)
echo "DATABASE_URL=mysql://root:root@localhost/test" >> $GITHUB_ENV
echo "DATABASE_URL=mysql://root:root@localhost:3306/test" >> $GITHUB_ENV
;;
postgres)
echo "DATABASE_URL=postgres://postgres:postgres@localhost/test" >> $GITHUB_ENV
echo "DATABASE_URL=postgres://postgres:postgres@localhost:5432/test" >> $GITHUB_ENV
;;
mariadb)
echo "DATABASE_URL=mariadb://root:root@localhost:3306/test" >> $GITHUB_ENV
;;
esac
- name: Test
Expand Down

0 comments on commit fe4cc64

Please sign in to comment.