Safer? #37
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
name: ci | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php_version: ["8.1", "8.2", "8.3"] | |
drupal_version: ["^10.3", "^11"] | |
exclude: | |
- drupal_version: "^11" | |
php_version: "8.1" | |
- drupal_version: "^11" | |
php_version: "8.2" | |
env: | |
PHP_VERSION: ${{ matrix.php_version }} | |
DRUPAL_VERSION: ${{ matrix.drupal_version }} | |
DOCKER_USER_ID: "1001" | |
steps: | |
- name: clone | |
uses: actions/checkout@v3 | |
- name: docker compose up -d | |
run: docker compose up -d | |
- name: php --version | |
run: docker compose exec -T php php --version | |
- name: composer self-update | |
run: docker compose exec -T php composer self-update | |
- name: composer require core | |
run: docker compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:${DRUPAL_VERSION} drupal/core-composer-scaffold:${DRUPAL_VERSION} | |
- name: composer require contrib | |
if: matrix.drupal_version == '^11' | |
run: docker compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/book drupal/forum drupal/statistics drupal/tracker:"dev-3379544-tracker-needs-to" | |
- name: composer install | |
run: docker compose exec -T php composer install --no-progress --no-ansi --no-interaction | |
- name: composer site:install | |
run: docker compose exec -T php composer site:install | |
- name: drush status | |
run: docker compose exec -T php ./vendor/bin/drush status | |
- name: composer phpcs | |
run: docker compose exec -T php composer phpcs | |
- name: composer phpunit | |
run: docker compose exec -T php composer phpunit |