mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 13:41:31 +00:00
Add MySQL steps
This commit is contained in:
parent
57661e3b46
commit
3264d95564
1 changed files with 13 additions and 0 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -36,6 +36,19 @@ jobs:
|
|||
- name: Compile
|
||||
run: dotnet build -c Debug
|
||||
|
||||
- name: Make sure the default MySQL service is stopped
|
||||
run: sudo service mysql stop
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql database: 'lighthouse'
|
||||
mysql user: 'lighthouse'
|
||||
mysql password: 'lighthouse'
|
||||
|
||||
- name: Run database migrations
|
||||
run: mysql -u lighthouse -p lighthouse lighthouse < DatabaseMigrations/*.sql
|
||||
|
||||
- name: Test
|
||||
continue-on-error: true
|
||||
run: dotnet test --logger "trx;LogFileName=${{github.workspace}}/TestResults-${{matrix.os.prettyName}}.trx"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue