Skip to content

Commit 2de35bf

Browse files
committed
Adding PostgreSQL tests
1 parent f8892fc commit 2de35bf

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,50 @@ jobs:
179179
- name: "Upload Code Coverage"
180180
uses: "codecov/codecov-action@v1"
181181

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+
182226
# phpunit-oci8:
183227
# name: "PHPUnit on OCI8"
184228
# runs-on: "ubuntu-latest"

0 commit comments

Comments
 (0)