diff --git a/.github/workflows/drs_ci.yml b/.github/workflows/drs_ci.yml index 2282ac8..2dca280 100644 --- a/.github/workflows/drs_ci.yml +++ b/.github/workflows/drs_ci.yml @@ -60,10 +60,14 @@ jobs: coverage: xdebug - name: Download ORCA run: composer create-project --no-dev --ignore-platform-req=php acquia/orca ../orca "$ORCA_VERSION" -n + - name: Before Install + run: ../orca/bin/ci/before_install.sh + - name: Install + run: ../orca/bin/ci/install.sh - name: Before script run: ../orca/bin/ci/before_script.sh - name: Script - run: ../orca/bin/ci/script.sh + run: ./tests/ci/script.sh - name: After script run: | ../orca/bin/ci/after_success.sh diff --git a/tests/ci/script.sh b/tests/ci/script.sh new file mode 100755 index 0000000..9ffc499 --- /dev/null +++ b/tests/ci/script.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# NAME +# script.sh - Run ORCA tests. +# +# SYNOPSIS +# script.sh +# +# DESCRIPTION +# Runs static code analysis and automated tests. + +cd "$(dirname "$0")" + +# Reuse ORCA's own includes. +source ../../../orca/bin/travis/_includes.sh +cd /home/runner/work/drupal-recommended-settings/drupal-recommended-settings +composer install +./vendor/bin/phpunit tests +cd -