-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: try another github action for MySQL
- Loading branch information
Showing
1 changed file
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|