mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-10 22:08:39 +00:00
Fix database migration step, only setup MySQL on Linux
This commit is contained in:
parent
3264d95564
commit
87a294d254
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue