From: Dan Brown Date: Sat, 14 Mar 2020 18:44:02 +0000 (+0000) Subject: Added a "Start Database" step to github action flow X-Git-Tag: v0.28.3~1^2~5 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/8a4e75ef322e7caad27d2c0076c777b6513ef732 Added a "Start Database" step to github action flow https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/ --- diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index f6c002c05..fa2437f37 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -31,6 +31,10 @@ jobs: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ matrix.php }} + - name: Start Database + run: | + sudo /etc/init.d/mysql start + - name: Setup Database run: | mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS `bookstack-test`;'