Skip to content

Commit

Permalink
Add mysql config
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod committed Aug 5, 2024
1 parent c1ec616 commit f581a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/mysqlconfig.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
7 changes: 7 additions & 0 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
--health-interval=10s
--health-timeout=5s
--health-retries=3
volumes:
- ./mysqlconfig.cnf:/etc/mysql/my.cnf
continue-on-error: ${{ matrix.crystal == 'nightly' }}
strategy:
fail-fast: false
Expand All @@ -49,6 +51,11 @@ jobs:
run: |
apt-get update
apt-get -yqq install mysql-client libmysqlclient-dev
- name: Alter charset for marten_test in MariaDB
run: |
mysql -u root -h mariadb --password=mariadb -e 'ALTER DATABASE marten_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
env:
PGPASSWORD: mysql
- name: Create additional DB for MySQL
run: |
mysql -u root -h mariadb --password=mariadb -e 'create database marten_other_test;'
Expand Down

0 comments on commit f581a0f

Please sign in to comment.