Skip to content

Commit e62725a

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

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 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,25 @@ 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+
fi
88+
89+
if [ "${{ matrix.coverage-driver }}" = "xdebug3" ]; then
90+
echo "::set-env name=COVERAGE::none"
91+
echo "::set-env name=EXTENSIONS::xdebug"
92+
fi
93+
7794
- name: "Install PHP with extensions"
7895
uses: "shivammathur/setup-php@v1"
7996
with:
8097
php-version: "${{ matrix.php-version }}"
81-
coverage: "${{ matrix.coverage-driver }}"
98+
coverage: "${{ env.COVERAGE }}"
99+
extensions: "${{ env.EXTENSIONS }}"
82100

83101
- name: "Cache dependencies installed with composer"
84102
uses: "actions/cache@v1"

0 commit comments

Comments
 (0)