Fix type-specific media derivative attachment. (#1103) #807
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [ 2.x ] | |
| pull_request: | |
| branches: [ 2.x ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| continue-on-error: false | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ["8.3", "8.4"] | |
| test-suite: ["kernel", "unit", "functional", "functional-javascript"] | |
| drupal-version: ["10.5", "10.6", "11.2", "11.3"] | |
| name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | test-suite ${{ matrix.test-suite }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: create docker network | |
| run: docker network create ci-default | |
| - name: start activemq | |
| run: docker run -d --name activemq --network ci-default webcenter/activemq:5.14.3 | |
| - name: Start chromedriver | |
| if: matrix.test-suite == 'functional-javascript' | |
| run: |- | |
| docker run -d \ | |
| --name chromedriver \ | |
| --network ci-default \ | |
| drupalci/webdriver-chromedriver:production \ | |
| chromedriver --log-path=/dev/null --verbose --allowed-ips= --allowed-origins=* | |
| - name: PHPUNIT tests | |
| run: | | |
| docker run \ | |
| --rm \ | |
| --name drupal \ | |
| --hostname drupal \ | |
| --volume $(pwd):/var/www/drupal/web/modules/contrib/$ENABLE_MODULES:ro \ | |
| --env ENABLE_MODULES \ | |
| --env TEST_SUITE \ | |
| --network ci-default \ | |
| ghcr.io/islandora/ci:${{ matrix.drupal-version }}-php${{ matrix.php-versions }} | |
| env: | |
| ENABLE_MODULES: islandora | |
| TEST_SUITE: ${{ matrix.test-suite }} | |
| - name: Print chromedriver logs | |
| if: matrix.test-suite == 'functional-javascript' | |
| run: docker logs chromedriver |