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 86ce6c5 commit 1e5f2d6
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 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.1']

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

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

Expand All @@ -52,7 +50,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 @@ -65,4 +63,35 @@ 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.1'
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: Install postfix
run: sudo apt-get install -y postfix

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

- name: Install dependencies
env:
COMPOSER_ROOT_VERSION: dev-master
run:
composer update

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

0 comments on commit 1e5f2d6

Please sign in to comment.