File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 55
55
56
56
runs-on : " ubuntu-latest"
57
57
58
+ env :
59
+ EXTENSIONS : " "
60
+
58
61
strategy :
59
62
matrix :
60
63
php-version :
64
67
65
68
coverage-driver :
66
69
- " pcov"
67
- - " xdebug"
70
+ - " xdebug2"
71
+ - " xdebug3"
68
72
69
73
dependencies :
70
74
- " lowest"
@@ -74,11 +78,25 @@ jobs:
74
78
- name : " Checkout"
75
79
uses : " actions/checkout@v2"
76
80
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
+
77
94
- name : " Install PHP with extensions"
78
95
uses : " shivammathur/setup-php@v1"
79
96
with :
80
97
php-version : " ${{ matrix.php-version }}"
81
- coverage : " ${{ matrix.coverage-driver }}"
98
+ coverage : " ${{ env.COVERAGE }}"
99
+ extensions : " ${{ env.EXTENSIONS }}"
82
100
83
101
- name : " Cache dependencies installed with composer"
84
102
uses : " actions/cache@v1"
You can’t perform that action at this time.
0 commit comments