Trying to pass options directly

This commit is contained in:
Griatch 2024-06-27 20:13:25 +02:00
parent eaec0d5d00
commit fadbbaa4a3

View file

@ -59,18 +59,19 @@ jobs:
--health-interval 10s --health-interval 10s
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
--character-set-server-utf8mb4
--collation-server-utf8mb4_unicode_ci
ports: ports:
- 3306:3306 - 3306:3306
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Reboot MySQL with custom options # - name: Reboot MySQL with custom options
if: ${{ matrix.TESTING_DB == 'mysql' }} # if: ${{ matrix.TESTING_DB == 'mysql' }}
run: | # run: |
sudo cp ${{ github.workspace }}/.github/workflows/mysql_options.cnf /etc/mysql/conf.d/custom.cnf # sudo cp ${{ github.workspace }}/.github/workflows/mysql_options.cnf /etc/mysql/conf.d/custom.cnf
sudo chown -R mysql:mysql /etc/mysql/conf.d/custom.cnf # sudo chown -R mysql:mysql /etc/mysql/conf.d/custom.cnf
sudo service mysql restart
# - name: Set up database (${{ matrix.TESTING_DB }}) # - name: Set up database (${{ matrix.TESTING_DB }})
# uses: ./.github/actions/setup-database # uses: ./.github/actions/setup-database