Skip to content

Use php-cs-fixer/shim version directly as dev dependency #30

Use php-cs-fixer/shim version directly as dev dependency

Use php-cs-fixer/shim version directly as dev dependency #30

name: Pull request checks
on: [ pull_request ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.3']
composer-options:
- --prefer-dist --no-progress --no-interaction
- --prefer-dist --no-progress --no-interaction --prefer-lowest
steps:
# Checkout & installation
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
# Install project
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Composer update
run: composer update ${{ matrix.composer-options }}
# Linters
- name: Run Composer linter
run: composer validate --strict --no-check-lock
- name: Run lint PHP
run: composer run-script php-lint
# Tests
- name: Run PHP unit test suite
run: vendor/bin/phpunit -v -c .