Skip to content

Commit

Permalink
Try to enable MariaDB in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosomb committed Apr 29, 2024
1 parent 1bcb6c5 commit 3118469
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ jobs:
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup MySQL
uses: mirromutth/mysql[email protected]
- name: Setup MariaDB
uses: getong/mariadb[email protected]
with:
mysql version: '8.0'
mysql database: 'prestashop'
mysql root password: 'password'
- name: Setup Node
Expand Down Expand Up @@ -74,8 +73,8 @@ jobs:
- name: Build all assets
run: make assets

- name: Change MySQL authentication method
run: mysql -h127.0.0.1 -uroot -ppassword -e "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password'; FLUSH PRIVILEGES;"
- name: Change MariaDB authentication method
run: mysql -h127.0.0.1 -uroot -ppassword -e "ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD('password'); FLUSH PRIVILEGES;"

- name: Run integration-tests
run: composer run-script integration-tests --timeout=0
Expand Down

0 comments on commit 3118469

Please sign in to comment.