Skip to content

Commit

Permalink
feat: add testing on phpstan 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Dec 5, 2024
1 parent 9a7490f commit e29c341
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
phpstan: [ '^1.0', '^2.0' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer install
- run: composer require phpstan/phpstan ${{ matrix.phpstan }}
- run: composer test

format:
Expand All @@ -42,12 +43,13 @@ jobs:
strategy:
matrix:
php: [ '8.1' ]
phpstan: [ '^1.0', '^2.0' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer install
- run: composer require phpstan/phpstan ${{ matrix.phpstan }}
- run: composer analyse

0 comments on commit e29c341

Please sign in to comment.