Skip to content

Commit

Permalink
Try using mysql 8 without a password in CI until trilogy supports cac…
Browse files Browse the repository at this point in the history
…hing_sha2_password
  • Loading branch information
excid3 committed Jan 31, 2024
1 parent cf42fda commit 921a10e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ jobs:

services:
mysql:
image: mysql:8.2
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: test
ports: ['3306:3306']
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -94,7 +92,7 @@ jobs:

- name: Run tests
env:
DATABASE_URL: trilogy://user:password@127.0.0.1:3306/test
DATABASE_URL: trilogy://root:@127.0.0.1:3306/test
RAILS_ENV: test
run: |
bundle exec rails db:test:prepare
Expand Down

0 comments on commit 921a10e

Please sign in to comment.