File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,50 @@ jobs:
179
179
- name : " Upload Code Coverage"
180
180
uses : " codecov/codecov-action@v1"
181
181
182
+ phpunit-postgresql :
183
+ name : " PHPUnit on PostgreSQL"
184
+ runs-on : " ubuntu-latest"
185
+
186
+ strategy :
187
+ matrix :
188
+ php-version :
189
+ - " 7.4"
190
+
191
+ services :
192
+ postgres :
193
+ image : " postgres:9.6"
194
+ env :
195
+ POSTGRES_PASSWORD :
196
+ ports :
197
+ - " 5432:5432"
198
+
199
+ steps :
200
+ - name : " Checkout"
201
+ uses : " actions/checkout@v2"
202
+
203
+ - name : " Install PHP"
204
+ uses : " shivammathur/setup-php@v2"
205
+ with :
206
+ php-version : " ${{ matrix.php-version }}"
207
+ extensions : " "
208
+ coverage : " pcov"
209
+
210
+ - name : " Cache dependencies installed with composer"
211
+ uses : " actions/cache@v1"
212
+ with :
213
+ path : " ~/.composer/cache"
214
+ key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
215
+ restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
216
+
217
+ - name : " Install dependencies with composer"
218
+ run : " composer install --no-interaction --no-progress --no-suggest"
219
+
220
+ - name : " Run PHPUnit"
221
+ run : " vendor/bin/phpunit -c phpunit.pgsql.xml --coverage-clover=coverage.xml"
222
+
223
+ - name : " Upload Code Coverage"
224
+ uses : " codecov/codecov-action@v1"
225
+
182
226
# phpunit-oci8:
183
227
# name: "PHPUnit on OCI8"
184
228
# runs-on: "ubuntu-latest"
You can’t perform that action at this time.
0 commit comments