Skip to content

Commit

Permalink
Fix issue starting mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Oct 4, 2024
1 parent 01cb6b9 commit 4cbaf78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
ports:
- 3306:3306
env:
MYSQL_HOST: 127.0.0.1
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: github
MYSQL_PASSWORD: github
Expand Down Expand Up @@ -103,8 +104,7 @@ jobs:
rubygems: latest
- name: Set up databases
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_general_ci;' -u root -proot
mysql -h 127.0.0.1 -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_general_ci;' -u root -proot
psql -h localhost -U postgres -c 'create database ${{ env.DB_DATABASE }};'
psql -h localhost -U postgres -d ${{ env.DB_DATABASE }} -c 'create extension if not exists hstore;'
psql -h localhost -U postgres -c 'create extension if not exists postgis;'
Expand Down

0 comments on commit 4cbaf78

Please sign in to comment.