]> BookStack Code Mirror - bookstack/commitdiff
Added a "Start Database" step to github action flow
authorDan Brown <redacted>
Sat, 14 Mar 2020 18:44:02 +0000 (18:44 +0000)
committerDan Brown <redacted>
Sat, 14 Mar 2020 18:44:02 +0000 (18:44 +0000)
https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/

.github/workflows/phpunit.yml

index f6c002c05098d1c1a9148e6bb54ddde46ef1fd2b..fa2437f378a74c378b575fd4ef49bef7031aafa7 100644 (file)
@@ -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`;'