Skip to content

Commit

Permalink
add github action steps to resolve database.yml or DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zmariscal committed Oct 10, 2023
1 parent e5f311e commit 3de57ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/trilogy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@ jobs:
run: bundle exec rake trilogy:rebuild_database
env:
MYSQL_ROOT_PASSWORD: root
- name: Create user, grant privledges,and flush # workaround to resolve https://github.com/trilogy-libraries/activerecord-trilogy-adapter/issues/64
run: |
mysql -e "CREATE USER 'test'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test';" -uMYSQL_USER -pMYSQL_ROOT_PASSWORD
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' WITH GRANT OPTION;" -uMYSQL_USER -pMYSQL_ROOT_PASSWORD
mysql -e "FLUSH PRIVILEGES;" -uMYSQL_USER -pMYSQL_ROOT_PASSWORD
- name: Trilogy test
run: bundle exec rake trilogy:test

0 comments on commit 3de57ac

Please sign in to comment.