8
8
- cron : 0 0 * * *
9
9
10
10
jobs :
11
+ lint :
12
+ runs-on : " ubuntu-latest"
13
+ name : " Linting | PHP ${{ matrix.php-version }}"
14
+ strategy :
15
+ matrix :
16
+ php-version :
17
+ - " 7.4"
18
+ - " 8.0"
19
+ - " 8.1"
20
+ steps :
21
+ - name : " Checkout"
22
+ uses : " actions/checkout@v2"
23
+ - name : " Install PHP"
24
+ uses : " shivammathur/setup-php@v2"
25
+ with :
26
+ coverage : " none"
27
+ php-version : " ${{ matrix.php-version }}"
28
+ tools : composer:v2
29
+ extensions : dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
30
+ - name : " Install dependencies"
31
+ run : " composer update --no-progress --prefer-dist"
32
+ - name : " PHPCS"
33
+ run : " php vendor/bin/phpcs src"
34
+ - name : " PHPStan"
35
+ run : " php vendor/bin/phpstan analyze"
11
36
tests :
12
37
continue-on-error : ${{ matrix.experimental }}
13
38
runs-on : " ubuntu-latest"
33
58
- name : " Install PHP"
34
59
uses : " shivammathur/setup-php@v2"
35
60
with :
36
- coverage : " none "
61
+ coverage : " xdebug "
37
62
php-version : " ${{ matrix.php-version }}"
38
63
tools : composer:v2
39
64
extensions : dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
@@ -48,14 +73,13 @@ jobs:
48
73
if : ${{ matrix.drupal != '^8.9' }}
49
74
- name : " Install dependencies"
50
75
run : " composer update --no-progress --prefer-dist"
51
- - name : " PHPCS"
52
- run : " php vendor/bin/phpcs src"
53
- - name : " PHPStan"
54
- run : " php vendor/bin/phpstan analyze"
55
76
- name : " PHPUnit"
56
77
run : " php vendor/bin/phpunit --debug"
57
78
58
79
build_integration :
80
+ needs :
81
+ - lint
82
+ - tests
59
83
continue-on-error : ${{ matrix.experimental }}
60
84
runs-on : " ubuntu-latest"
61
85
name : " Build Integration | PHP ${{ matrix.php-version }} | Drupal ${{ matrix.drupal }}"
@@ -133,6 +157,9 @@ jobs:
133
157
./vendor/bin/phpstan analyze web/modules/contrib --no-progress || if (($? == 255)); then false; else true; fi
134
158
COMPOSER_MEMORY_LIMIT=-1 composer remove drupal/video_embed_field drupal/slick
135
159
build_integration_no_phpunit :
160
+ needs :
161
+ - lint
162
+ - tests
136
163
continue-on-error : ${{ matrix.experimental }}
137
164
runs-on : " ubuntu-latest"
138
165
name : " Build Integration (No PHPUnit) | PHP ${{ matrix.php-version }} | Drupal ${{ matrix.drupal }}"
0 commit comments