Fix database check again

This commit is contained in:
jvyden 2021-10-16 21:51:37 -04:00
commit b0d1df506d
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -37,11 +37,11 @@ jobs:
run: dotnet build -c Debug run: dotnet build -c Debug
- name: Make sure the default MySQL service is stopped - name: Make sure the default MySQL service is stopped
if: ${{ matrix.os.database == 'true' }} if: ${{ matrix.os.database }}
run: sudo service mysql stop run: sudo service mysql stop
- name: Set up MySQL - name: Set up MySQL
if: ${{ matrix.os.database == 'true' }} if: ${{ matrix.os.database }}
uses: mirromutth/mysql-action@v1.1 uses: mirromutth/mysql-action@v1.1
with: with:
mysql database: 'lighthouse' mysql database: 'lighthouse'
@ -49,7 +49,7 @@ jobs:
mysql password: 'lighthouse' mysql password: 'lighthouse'
- name: Run database migrations - name: Run database migrations
if: ${{ matrix.os.database }} if: ${{ matrix.os.database }}
run: mysql --batch --user=lighthouse --password=lighthouse --host=127.0.0.1 --protocol=TCP lighthouse < <(cat DatabaseMigrations/*.sql) run: mysql --batch --user=lighthouse --password=lighthouse --host=127.0.0.1 --protocol=TCP lighthouse < <(cat DatabaseMigrations/*.sql)
- name: Test - name: Test