Skip to content

Commit

Permalink
update workflow and order the args for the mysql command differently
Browse files Browse the repository at this point in the history
  • Loading branch information
zmariscal committed Oct 21, 2023
1 parent 1bc20ba commit 9311e0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/trilogy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ 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
- name: Create user, grant privileges, and flush # workaround to resolve https://github.com/trilogy-libraries/activerecord-trilogy-adapter/issues/64
run: |
mysql -h 127.0.0.1 -e "CREATE USER 'test'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test';" -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }}
mysql -h 127.0.0.1 -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' WITH GRANT OPTION;" -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }}
mysql -h 127.0.0.1 -e "FLUSH PRIVILEGES;" -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }}
mysql -h 127.0.0.1 -e "CREATE USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY 'test';" -uroot -p${{ env.MYSQL_ROOT_PASSWORD }}
mysql -h 127.0.0.1 -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'%' WITH GRANT OPTION;" -uroot -p${{ env.MYSQL_ROOT_PASSWORD }}
mysql -h 127.0.0.1 -e "FLUSH PRIVILEGES;" -uroot -p${{ env.MYSQL_ROOT_PASSWORD }}
env:
MYSQL_ROOT_PASSWORD: root
- name: Trilogy test
run: bundle exec rake trilogy:test

0 comments on commit 9311e0d

Please sign in to comment.