mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-23 23:29:07 +07:00
Improve code and examples
This commit is contained in:
@ -6,7 +6,7 @@ jobs:
|
||||
max-parallel: 6
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
php-versions: [7.2, 7.3]
|
||||
php-versions: ['7.2', '7.3']
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -15,7 +15,13 @@ jobs:
|
||||
uses: shivammathur/setup-php@master #https://github.com/shivammathur/setup-php
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
extension-csv: 'mbstring'
|
||||
coverage: 'xdebug'
|
||||
extension-csv: mbstring, simplexml, dom
|
||||
coverage: xdebug #optional
|
||||
- name: Install dependencies
|
||||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
|
||||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
|
||||
- name: Test with phpunit in windows
|
||||
if: matrix.operating-system == 'windows-latest'
|
||||
run: .\vendor\bin\phpunit --coverage-text
|
||||
- name: Test with phpunit
|
||||
if: matrix.operating-system != 'windows-latest'
|
||||
run: vendor/bin/phpunit --coverage-text
|
Reference in New Issue
Block a user