Skip to content

Commit f00c23b

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

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555

5656
runs-on: "ubuntu-latest"
5757

58+
env:
59+
EXTENSIONS: ""
60+
5861
strategy:
5962
matrix:
6063
php-version:
@@ -64,7 +67,8 @@ jobs:
6467

6568
coverage-driver:
6669
- "pcov"
67-
- "xdebug"
70+
- "xdebug2"
71+
- "xdebug3"
6872

6973
dependencies:
7074
- "lowest"
@@ -74,11 +78,23 @@ jobs:
7478
- name: "Checkout"
7579
uses: "actions/checkout@v2"
7680

81+
- name: "Determine build parameters"
82+
run: |
83+
echo "::set-env name=COVERAGE::${{ matrix.coverage-driver }}"
84+
85+
if [ "${{ matrix.coverage-driver }}" = "xdebug2" ]; then
86+
echo "::set-env name=COVERAGE::xdebug"
87+
elif [ "${{ matrix.coverage-driver }}" = "xdebug3" ]; then
88+
echo "::set-env name=COVERAGE::none"
89+
echo "::set-env name=EXTENSIONS::xdebug"
90+
fi
91+
7792
- name: "Install PHP with extensions"
7893
uses: "shivammathur/setup-php@v1"
7994
with:
8095
php-version: "${{ matrix.php-version }}"
81-
coverage: "${{ matrix.coverage-driver }}"
96+
coverage: "${{ env.COVERAGE }}"
97+
extensions: "${{ env.EXTENSIONS }}"
8298

8399
- name: "Cache dependencies installed with composer"
84100
uses: "actions/cache@v1"

0 commit comments

Comments
 (0)