diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2cc15d9..72b7a9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,7 @@ jobs: env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} run: | + mysql -h 127.0.0.1 -u drupal -pdrupal -e 'CREATE DATABASE IF NOT EXISTS drupal' composer global require su-sws/stanford-caravan:10.x-dev ~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage - name: Save Test Results @@ -60,7 +61,7 @@ jobs: env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} run: | - mysql -h localhost -P 3306 -u drupal -pdrupal -e 'CREATE DATABASE drupal' + mysql -h 127.0.0.1 -P 3306 -u drupal -pdrupal -e 'CREATE DATABASE IF NOT EXISTS drupal' composer global require su-sws/stanford-caravan:11.x-dev ~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage - name: Save Test Results