Merge pull request #459 from iambrosi/fix-php-version-workflows
Fix PHP version used by testing workflow
This commit is contained in:
commit
7146b9021f
|
@ -19,13 +19,13 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Composer install
|
||||
uses: php-actions/composer@v5
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
command: install
|
||||
args: --ignore-platform-reqs --no-scripts
|
||||
version: 2
|
||||
php_version: 8.0
|
||||
php-version: 8.0
|
||||
tools: composer:v2
|
||||
- name: Composer install
|
||||
run: composer install --ignore-platform-reqs --no-scripts
|
||||
- name: PHPStan
|
||||
run: ./vendor/bin/phpstan analyse
|
||||
- name: PHP Code Sniffer
|
||||
|
|
|
@ -22,17 +22,18 @@ jobs:
|
|||
- php: 8.1
|
||||
coveralls: false
|
||||
steps:
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
tools: composer:v2
|
||||
coverage: xdebug
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Composer install
|
||||
uses: php-actions/composer@v5
|
||||
with:
|
||||
command: install
|
||||
args: --ignore-platform-reqs --no-scripts
|
||||
version: 2
|
||||
php_version: ${{ matrix.php }}
|
||||
run: composer install --ignore-platform-reqs --no-scripts
|
||||
- name: Run tests
|
||||
env:
|
||||
XDEBUG_MODE: coverage
|
||||
|
|
Loading…
Reference in New Issue