Merge pull request #15 from artemeon/phpstan #38
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: UNIT-TESTS | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
- name: Composer install | |
run: composer install --no-interaction --no-ansi --no-progress | |
- name: Run PHPStan | |
run: composer run phpstan | |
phpunit: | |
name: PHPUnit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
- name: Composer install | |
run: composer install --no-interaction --no-ansi --no-progress | |
- name: Run PHPUnit | |
run: vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml |