Skip to content

Commit

Permalink
Update tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Dec 20, 2022
1 parent 061b2d5 commit c45d407
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:

strategy:
fail-fast: true
matrix:
php: ['8.0', '8.1']

name: PHP ${{ matrix.php }}
name: PHP 8.0

steps:
- name: Checkout
Expand All @@ -25,7 +23,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: 8.0
tools: composer
coverage: xdebug

Expand All @@ -47,7 +45,7 @@ jobs:

- name: PHPStan
run:
vendor/bin/phpstan analyse -vvv
vendor/bin/phpstan analyse --xdebug -vvv

- name: PHPUnit
run: vendor/bin/phpunit --verbose
Expand All @@ -60,4 +58,30 @@ jobs:
cp build/coverage/clover.xml build/logs/clover.xml
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
if: matrix.php == '8.0'
tests-last:
runs-on: ubuntu-20.04
timeout-minutes: 10

strategy:
fail-fast: true

name: PHP 8.2 - Last

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer
coverage: xdebug

- name: Install dependencies
run:
composer update

- name: PHPUnit
run: vendor/bin/phpunit --verbose

0 comments on commit c45d407

Please sign in to comment.