Skip to content

Commit

Permalink
Add mysql setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 20, 2024
1 parent 61f06bd commit 9c0e998
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
name: package-distributions
path: dist/

- uses: shogo82148/actions-setup-mysql@v1
with:
distribution: 'mariadb'
mysql-version: '10.6'
auto-start: false

- name: Set up test database
run: |
set -eu
Expand All @@ -58,7 +64,7 @@ jobs:
tar xfz "dist/ispyb-database.tar.gz"

printf 'Waiting for MySQL database to accept connections'
until mariadb --defaults-file=.my.cnf -h 0.0.0.0 -P 3306 -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 0.5; done
until mariadb --defaults-file=.my.cnf -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 0.5; done
printf '\n'

mariadb -e "SET GLOBAL log_bin_trust_function_creators = 1;"
Expand Down

0 comments on commit 9c0e998

Please sign in to comment.