7
7
name : " CI"
8
8
9
9
jobs :
10
- coding-guidelines :
11
- name : " Coding Guidelines"
12
-
13
- runs-on : " ubuntu-latest"
14
-
15
- steps :
16
- - name : " Checkout"
17
- uses : " actions/checkout@v2"
18
-
19
- - name : " Run friendsofphp/php-cs-fixer"
20
- run : " php7.3 ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose"
21
-
22
- type-checker :
23
- name : " Type Checker"
24
-
25
- runs-on : " ubuntu-latest"
26
-
27
- steps :
28
- - name : " Checkout"
29
- uses : " actions/checkout@v2"
30
-
31
- - name : " Install PHP with extensions"
32
- uses : " shivammathur/setup-php@v1"
33
- with :
34
- php-version : " 7.3"
35
- coverage : " pcov"
36
-
37
- - name : " Cache dependencies installed with composer"
38
- uses : " actions/cache@v1"
39
- with :
40
- path : " ~/.composer/cache"
41
- key : " php7.3-composer-highest-${{ hashFiles('**/composer.json') }}"
42
- restore-keys : " php7.3-composer-highest-"
43
-
44
- - name : " Set COMPOSER_ROOT_VERSION environment variable"
45
- uses : " docker://ergebnis/composer-root-version-action:0.1.3"
46
-
47
- - name : " Update dependencies with composer"
48
- run : " ./tools/composer update --no-ansi --no-interaction --no-progress"
49
-
50
- - name : " Run vimeo/psalm"
51
- run : " ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats"
52
-
53
10
tests :
54
11
name : " Tests"
55
12
58
15
strategy :
59
16
matrix :
60
17
php-version :
61
- - " 7.3"
62
- - " 7.4"
63
18
- " 8.0"
64
19
65
- coverage-driver :
66
- - " pcov"
67
- - " xdebug"
68
-
69
20
dependencies :
70
21
- " lowest"
71
22
- " highest"
@@ -74,11 +25,14 @@ jobs:
74
25
- name : " Checkout"
75
26
uses : " actions/checkout@v2"
76
27
77
- - name : " Install PHP with extensions "
78
- uses : " shivammathur/setup-php@v1 "
28
+ - name : " Install PHP with Xdebug 3 "
29
+ uses : " shivammathur/setup-php@v2 "
79
30
with :
80
31
php-version : " ${{ matrix.php-version }}"
81
- coverage : " ${{ matrix.coverage-driver }}"
32
+ extensions : " xdebug"
33
+
34
+ - name : " Show PHP version"
35
+ run : " php -v"
82
36
83
37
- name : " Cache dependencies installed with composer"
84
38
uses : " actions/cache@v1"
0 commit comments