Skip to content

Commit 7971004

Browse files
committed
Enhancement: Run builds with Xdebug 3
1 parent 6f8d30c commit 7971004

File tree

1 file changed

+70
-48
lines changed

1 file changed

+70
-48
lines changed

.github/workflows/ci.yml

Lines changed: 70 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,48 @@ on:
77
name: "CI"
88

99
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"
5252

5353
tests:
5454
name: "Tests"
@@ -58,28 +58,50 @@ jobs:
5858
strategy:
5959
matrix:
6060
php-version:
61-
- "7.3"
62-
- "7.4"
61+
# - "7.3"
62+
# - "7.4"
6363
- "8.0"
6464

6565
coverage-driver:
6666
- "pcov"
67-
- "xdebug"
67+
# - "xdebug"
68+
- "xdebug3"
6869

6970
dependencies:
70-
- "lowest"
71+
# - "lowest"
7172
- "highest"
7273

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+
7383
steps:
7484
- name: "Checkout"
7585
uses: "actions/checkout@v2"
7686

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"
7990
with:
8091
php-version: "${{ matrix.php-version }}"
8192
coverage: "${{ matrix.coverage-driver }}"
8293

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+
83105
- name: "Cache dependencies installed with composer"
84106
uses: "actions/cache@v1"
85107
with:

0 commit comments

Comments
 (0)