Bump PHPUnit and PHPStan #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LeasingNinja in PHP – CI | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php-version: ['8.0', '8.1', '8.2'] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup PHP with tools | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- name: Install dependencies | |
run: composer update --no-interaction --no-ansi --no-progress | |
- name: Run static analysis | |
run: ./vendor/bin/phpstan analyze --no-interaction --no-ansi --no-progress | |
- name: Run CodeSniffer | |
run: ./vendor/bin/phpcs | |
- name: Test | |
run: ./vendor/bin/phpunit |