From ca4a6d310b6eab92eb0538eb4091e2e335b6c030 Mon Sep 17 00:00:00 2001 From: baerwang <1780285721@qq.com> Date: Sat, 18 Dec 2021 22:40:52 +0800 Subject: [PATCH] style:ci bash create user,db --- .github/workflows/github-actions.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index aa36f398..ef12c7ef 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -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/mysql-action@v1.1 - 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 <