diff --git a/.github/workflows/databases.yml b/.github/workflows/mysql5.7.yml similarity index 100% rename from .github/workflows/databases.yml rename to .github/workflows/mysql5.7.yml diff --git a/README.md b/README.md index 7f2e089..51592fa 100644 --- a/README.md +++ b/README.md @@ -35,32 +35,32 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: macos-latest + runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - name: Install MySQL 5.7 + - uses: actions/checkout@v4 + + - name: Install MySQL shell: bash run: | - brew install mysql - brew install mysql@5.7 - brew unlink mysql && brew link mysql@5.7 - echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> /Users/runner/.bash_profile - bash + sudo apt-get update + sudo apt-get install -y mysql-server + sudo systemctl start mysql.service mysql --version mysqldump --version + # Runs a single command using the runners shell - name: Check MySQL schemas - uses: ./ - with: + uses: GoLinks/mysql-schema-artifact@v1 + with: file: db.sql hostname: ${{ secrets.HOSTNAME }} username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} database: ${{ secrets.DATABASE }} + - uses: actions/upload-artifact@v2 with: name: db.sql