-
-
Notifications
You must be signed in to change notification settings - Fork 96
37 lines (37 loc) · 1.29 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ci
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php_version: "7.4"
drupal_version: "9"
- php_version: "8.2"
drupal_version: "10"
- php_version: "8.3"
drupal_version: "10"
- php_version: "8.3"
drupal_version: "11"
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: composer self-update
run: docker-compose exec -T php composer self-update
- name: composer require
run: docker-compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:^${DRUPAL_VERSION} drupal/core-recommended:^${DRUPAL_VERSION}
- name: composer install
run: docker-compose exec -T php composer install
- name: composer phpunit-configuration
run: docker-compose exec -T php phpunit --migrate-configuration
if: "${{ matrix.drupal_version == '11'}}"
- name: composer test
run: docker-compose exec -T php composer test