Skip to content

Add a packagist badge #13

Add a packagist badge

Add a packagist badge #13

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.1', '8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit tests
- name: Run PHPStan
run: vendor/bin/phpstan analyse src
- name: Run PHP CS Fixer
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer check src
- name: Run PHP CS Fixer for tests
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer check tests