Skip to content

Types, pint, Larastan, and comment clean-up #199

Types, pint, Larastan, and comment clean-up

Types, pint, Larastan, and comment clean-up #199

Workflow file for this run

name: PHPUnit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Validate composer.json
run: composer validate
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress
- name: Run PHPStan
run: php vendor/bin/phpstan analyze
- name: Run Tests
run: php vendor/bin/phpunit --coverage-clover .build/clover.xml
- name: Record Coverage
run: php vendor/bin/php-coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}