From 3264d95564a74b7770a141e159b57a9d2567d1f3 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sat, 16 Oct 2021 21:20:29 -0400 Subject: [PATCH] Add MySQL steps --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebcd197b..98e6e2ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"