Skip to content

Add a GitHub link to the readme. #40

Add a GitHub link to the readme.

Add a GitHub link to the readme. #40

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
include:
- php-version: '7.4'
composer-options: '--ignore-platform-reqs'
- php-version: '8.0'
composer-options: '--ignore-platform-reqs'
- php-version: '8.1'
composer-options: '--ignore-platform-reqs'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
composer-options: ${{ matrix.composer-options }}
- name: Run PHPUnit
run: ./vendor/bin/phpunit
lint:
name: Lint (Pint + PHPStan)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Run Pint
run: ./vendor/bin/pint --test
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse