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"
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
52
53
53
tests :
54
54
name : " Tests"
@@ -58,28 +58,50 @@ jobs:
58
58
strategy :
59
59
matrix :
60
60
php-version :
61
- - " 7.3"
62
- - " 7.4"
61
+ # - "7.3"
62
+ # - "7.4"
63
63
- " 8.0"
64
64
65
65
coverage-driver :
66
66
- " pcov"
67
- - " xdebug"
67
+ # - "xdebug"
68
+ - " xdebug3"
68
69
69
70
dependencies :
70
- - " lowest"
71
+ # - "lowest"
71
72
- " highest"
72
73
74
+ # exlude:
75
+ # # - php-version: "8.0"
76
+ # # coverage-driver: "xdebug"
77
+ # # dependencies: "lowest"
78
+ #
79
+ # - php-version: "8.0"
80
+ # coverage-driver: "xdebug"
81
+ # dependencies: "highest"
82
+
73
83
steps :
74
84
- name : " Checkout"
75
85
uses : " actions/checkout@v2"
76
86
77
- - name : " Install PHP with extensions"
78
- uses : " shivammathur/setup-php@v1"
87
+ - name : " Install PHP with PCOV or Xdebug 2"
88
+ if : " matrix.coverage-driver != 'xdebug3'"
89
+ uses : " shivammathur/setup-php@v2"
79
90
with :
80
91
php-version : " ${{ matrix.php-version }}"
81
92
coverage : " ${{ matrix.coverage-driver }}"
82
93
94
+ - name : " Install PHP with Xdebug 3"
95
+ if : " matrix.coverage-driver == 'xdebug3'"
96
+ uses : " shivammathur/setup-php@v2"
97
+ with :
98
+ php-version : " ${{ matrix.php-version }}"
99
+ coverage : " none"
100
+ extensions : " xdebug"
101
+
102
+ - name : " Show PHP version"
103
+ run : " php -v"
104
+
83
105
- name : " Cache dependencies installed with composer"
84
106
uses : " actions/cache@v1"
85
107
with :
0 commit comments