mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Run MySQL steps before .NET steps
This commit is contained in:
parent
97365de016
commit
3edb798e7d
1 changed files with 11 additions and 11 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -30,6 +30,17 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Start MySQL
|
||||
if: ${{ matrix.os.database }}
|
||||
uses: shogo82148/actions-setup-mysql@v1
|
||||
with:
|
||||
mysql-version: '8.0'
|
||||
root-password: ${{ env.DB_PASSWORD }}
|
||||
|
||||
- name: Create Lighthouse Database
|
||||
if: ${{ matrix.os.database }}
|
||||
run: mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -h 127.0.0.1 -e "CREATE DATABASE ${{ env.DB_DATABASE }};";
|
||||
|
||||
- name: Install .NET 5.0
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
|
@ -45,17 +56,6 @@ jobs:
|
|||
- name: Compile
|
||||
run: dotnet build -c Debug
|
||||
|
||||
- name: Start MySQL
|
||||
if: ${{ matrix.os.database }}
|
||||
uses: shogo82148/actions-setup-mysql@v1
|
||||
with:
|
||||
mysql-version: '8.0'
|
||||
root-password: ${{ env.DB_PASSWORD }}
|
||||
|
||||
- name: Create Lighthouse Database
|
||||
if: ${{ matrix.os.database }}
|
||||
run: mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -h 127.0.0.1 -e "CREATE DATABASE ${{ env.DB_DATABASE }};";
|
||||
|
||||
- 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