Merge pull request #459 from iambrosi/fix-php-version-workflows

Fix PHP version used by testing workflow
This commit is contained in:
Andrés Montañez 2022-05-01 12:01:23 -03:00 committed by GitHub
commit 7146b9021f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 12 deletions

View File

@ -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

View File

@ -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