Skip to content

Commit

Permalink
ci: try another github action for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Melchyore committed May 1, 2023
1 parent e155fb8 commit 72e9bad
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,13 @@ jobs:
- uses: actions/checkout@v3

- name: Setup MySQL
uses: shogo82148/actions-setup-mysql@v1.16.0
uses: haltuf/mysql-action@master
with:
auto-start: true
mysql-version: '8.0'
my-conf: |
default-authentication-plugin=mysql_native_password
sync_binlog=0
innodb_doublewrite=OFF
innodb-flush-log-at-trx-commit=0
innodb-flush-method=nosync
user: ${{ secrets.MYSQL_USER }}
root-password: ${{ secrets.MYSQL_PASSWORD }}
password: ${{ secrets.MYSQL_PASSWORD }}

- name: Start mysqld service
run: sudo service mysqld start

- name: Create database
run: mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS ${{ secrets.MYSQL_DB_NAME }};'
mysql version: '8.0'
mysql database: ${{ secrets.MYSQL_DB_NAME }}
mysql root password: ${{ secrets.MYSQL_PASSWORD }}
mysql user: ${{ secrets.MYSQL_USER }}
mysql password: ${{ secrets.MYSQL_PASSWORD }}

- name: Setup DynamoDB Local
uses: rrainn/[email protected]
Expand Down

0 comments on commit 72e9bad

Please sign in to comment.