-
-
Notifications
You must be signed in to change notification settings - Fork 192
61 lines (61 loc) · 2.77 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: ci
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ["7.4", "8.0", "8.1", "8.2"]
drupal_version: ["9", "10.0", "10.1"]
exclude:
- php_version: "7.4"
drupal_version: "10.0"
- php_version: "7.4"
drupal_version: "10.1"
- php_version: "8.0"
drupal_version: "10.0"
- php_version: "8.0"
drupal_version: "10.1"
- php_version: "8.2"
drupal_version: "9"
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: npm install
run: docker-compose exec -T -u node node npm install
- 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-composer-scaffold:^${DRUPAL_VERSION}
- name: composer install
run: docker-compose exec -T php composer install
- name: drush site-install
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal site-install --db-url=mysql://drupal:drupal@db/drupal --debug
- name: copy fixtures
run: docker-compose exec -T php cp -r fixtures/drupal/modules/behat_test drupal/modules
- name: drush pmu page_cache
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal pmu page_cache,big_pipe
- name: drush en behat_test
run: docker-compose exec -T php ./vendor/bin/drush --yes --root=drupal en behat_test
- name: npm test
run: docker-compose exec -T -u node node npm test
- name: composer test
run: docker-compose exec -T php composer test
- name: behat --profile=blackbox
run: docker-compose exec -T php vendor/bin/behat -fprogress --strict
- name: behat --profile=drupal9
if: "${{ matrix.drupal_version == '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal9 --strict
- name: behat --profile=drupal10
if: "${{ matrix.drupal_version != '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal10 --strict
- name: behat --profile=drupal_https
if: "${{ matrix.drupal_version != '9'}}"
run: docker-compose exec -T php cat && docker-compose exec -T php vendor/bin/behat -fprogress --profile=drupal_https --strict