Update to latest D9 release 9.5.11. #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GitHub workflow for Shepherd testing. | |
# | |
name: Shepherd testing | |
on: push | |
env: | |
COMPOSER_MEMORY_LIMIT: -1 | |
SIMPLETEST_DB: sqlite://tmp/site.sqlite | |
SIMPLETEST_BASE_URL: "http://127.0.0.1:8080" | |
SQLITE_DATABASE: tmp/site.sqlite | |
DTT_BASE_URL: "http://127.0.0.1:8080" | |
DTT_MINK_DRIVER_ARGS: '["chrome", null, "http://127.0.0.1:4444/wd/hub"]' | |
# Output directories | |
BROWSERTEST_OUTPUT_DIRECTORY: /tmp/browser_output | |
PRIVATE_DIR: /tmp/private | |
PUBLIC_DIR: /tmp/public | |
TMP_DIR: /tmp | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-versions: ['7.4'] | |
composer-channel: ['stable'] | |
include: | |
- php-versions: '7.4' | |
composer-channel: stable | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Dump matrix context. | |
env: | |
MATRIX_CONTEXT: ${{ toJSON(matrix) }} | |
run: echo "$MATRIX_CONTEXT" | |
- name: Setup PHP. | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: gd, pdo_sqlite, sqlite3 | |
- name: Start ChromeDriver. | |
run: | | |
google-chrome --version | |
xvfb-run --server-args="-screen 0, 1280x720x24" --auto-servernum \ | |
chromedriver --port=4444 --url-base=/wd/hub &> /tmp/chromedriver.log & | |
- name: Update composer. | |
run: composer --verbose self-update --${{ matrix.composer-channel }} | |
- name: Set current branch in environment. | |
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Add HTTP basic auth credentials. | |
run: echo '${{ secrets.COMPOSER_AUTH_JSON }}' > auth.json | |
- name: Install using composer. | |
run: composer install | |
- name: PHPCS Linting. | |
run: ./bin/phpcs | |
- name: PHPStan Code analysis. | |
run: ./bin/phpstan analyze --no-progress | |
- name: PHPStan deprecations analysis. | |
run: ./bin/phpstan analyse --no-progress -c phpstan-deprecations.neon | |
- name: Ensure directories for filesystem exist. | |
run: mkdir -p $PRIVATE_DIR $PUBLIC_DIR $TMP_DIR $BROWSERTEST_OUTPUT_DIRECTORY | |
- name: Replace the standard settings.php with the ci one. | |
run: cp web/sites/default/ci.settings.php web/sites/default/settings.php | |
- name: Perform a standard installation. | |
run: ./bin/drush -v site:install shepherd --account-mail [email protected] --account-name admin --account-pass password --site-name 'Drupal site' --site-mail [email protected] --yes --db-url=$SIMPLETEST_DB | |
- name: Import existing config. | |
run: ./bin/drush config:import --yes --source=${PWD}/config-export | |
- name: Install modules for tests | |
run: ./bin/drush pm-enable shp_cache_backend_test --yes | |
- run: ./bin/drush runserver $SIMPLETEST_BASE_URL & | |
- run: until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null | |
- name: Run test suite. | |
run: ./bin/phpunit |