Skip to content

fixup

fixup #10

Workflow file for this run

name: Site Acceptance Tests
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
set_sites:
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Restore Cache
uses: actions/cache@v4
with:
path: |
vendor
docroot/core
docroot/libraries
docroot/modules/contrib
key: 1.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
restore-keys: |
1.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
1.x-${{ hashFiles('composer.json') }}-
1.x-
- id: set-matrix
run: |
composer install -n &&
vendor/bin/blt blt:telemetry:disable --no-interaction &&
SITES=$(echo -n "$(blt blt:config:get multisites | shuf -n 10)" | jq -R -s -c 'split("\n") | sort')
echo "matrix={\"site\": $SITES}" >> $GITHUB_OUTPUT
test_site:
needs: set_sites
strategy:
fail-fast: false
matrix: ${{fromJSON(needs.set_sites.outputs.matrix)}}
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:latest
options: '--network-alias drupal8ci'
env:
DRUPAL_DATABASE_NAME: drupal
DRUPAL_DATABASE_USERNAME: drupal
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
services:
selenium:
image: selenium/standalone-chrome:115.0
options: '--shm-size="2g"'
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- name: Restore Cache
uses: actions/cache@v4
with:
path: |
vendor
docroot/core
docroot/libraries
docroot/modules/contrib
key: 1.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
restore-keys: |
1.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
1.x-${{ hashFiles('composer.json') }}-
1.x-
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: fail
- run: |
composer install -n &&
vendor/bin/blt blt:telemetry:disable --no-interaction &&
blt settings &&
blt drupal:sync --site=${{ matrix.site }} -n