forked from arana-db/arana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
14 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 |
---|---|---|
|
@@ -93,23 +93,20 @@ jobs: | |
- name: Run Linter | ||
run: golangci-lint run --timeout=10m -v --disable-all --enable=govet --enable=staticcheck --enable=ineffassign --enable=misspell | ||
|
||
- name: Shutdown Ubuntu MySQL (SUDOx) | ||
run: sudo service mysql stop | ||
|
||
- name: Set Up MySQL | ||
uses: mirromutth/[email protected] | ||
with: | ||
host port: ${{ secrets.MYSQL_PORT }} | ||
container port: 3307 | ||
character set server: 'utf8mb4' | ||
collation server: 'utf8mb4_unicode_ci' | ||
mysql version: ${{ secrets.MYSQL_VERSION }} | ||
mysql user: ${{ secrets.MYSQL_USER_NAME }} | ||
mysql password: ${{ secrets.MYSQL_PWD }} | ||
|
||
- name: Restart MySQL | ||
run: sudo service mysql restart | ||
|
||
- name: Create user and database | ||
shell: bash | ||
run: | | ||
mysql -uroot -proot <<EOF | ||
use mysql | ||
create user ${{ secrets.MYSQL_USER_NAME }}@127.0.0.1 identified by '${{ secrets.MYSQL_PWD }}'; | ||
create database employees; | ||
GRANT ALL ON employees.* to ${{ secrets.MYSQL_USER_NAME }}@127.0.0.1; | ||
flush privileges; | ||
EOF | ||
- name: Import mysql sql | ||
shell: bash | ||
run: | | ||
|