Skip to content

Commit 39c0178

Browse files
committed
Adding prefer lowest test
1 parent 785e3e8 commit 39c0178

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,51 @@ jobs:
168168
- name: "Upload Code Coverage"
169169
uses: "codecov/codecov-action@v1"
170170

171+
phpunit-prefer-lowest:
172+
name: "PHPUnit with prefer-lowest"
173+
runs-on: "ubuntu-latest"
174+
175+
strategy:
176+
matrix:
177+
php-version:
178+
- "7.4"
179+
180+
services:
181+
mysql:
182+
image: "mysql:8"
183+
env:
184+
MYSQL_ALLOW_EMPTY_PASSWORD: true
185+
MYSQL_ROOT_PASSWORD:
186+
ports:
187+
- "3306:3306"
188+
189+
steps:
190+
- name: "Checkout"
191+
uses: "actions/checkout@v2"
192+
193+
- name: "Install PHP"
194+
uses: "shivammathur/setup-php@v2"
195+
with:
196+
php-version: "${{ matrix.php-version }}"
197+
extensions: ""
198+
coverage: "pcov"
199+
200+
- name: "Cache dependencies installed with composer"
201+
uses: "actions/cache@v1"
202+
with:
203+
path: "~/.composer/cache"
204+
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
205+
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
206+
207+
- name: "Install dependencies with composer"
208+
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
209+
210+
- name: "Run PHPUnit"
211+
run: "vendor/bin/phpunit -c phpunit.mysql8.xml --coverage-clover=coverage.xml"
212+
213+
- name: "Upload Code Coverage"
214+
uses: "codecov/codecov-action@v1"
215+
171216
phpunit-mariadb105:
172217
name: "PHPUnit on MariaDB 10.5"
173218
runs-on: "ubuntu-latest"

0 commit comments

Comments
 (0)