diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98e6e2ef..0ca09e91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,11 @@ jobs: run: dotnet build -c Debug - name: Make sure the default MySQL service is stopped + if: ${{ matrix.os.prettyName == 'Linux' }} run: sudo service mysql stop - name: Set up MySQL + if: ${{ matrix.os.prettyName == 'Linux' }} uses: mirromutth/mysql-action@v1.1 with: mysql database: 'lighthouse' @@ -47,7 +49,8 @@ jobs: mysql password: 'lighthouse' - name: Run database migrations - run: mysql -u lighthouse -p lighthouse lighthouse < DatabaseMigrations/*.sql + if: ${{ matrix.os.prettyName == 'Linux' }} + run: cat DatabaseMigrations/*.sql | mysql -u lighthouse -p lighthouse lighthouse - name: Test continue-on-error: true