Skip to content

Merge pull request #15 from artemeon/phpstan #38

Merge pull request #15 from artemeon/phpstan

Merge pull request #15 from artemeon/phpstan #38

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