Skip to content

Commit

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

0 comments on commit a4766f3

Please sign in to comment.