Skip to content

Drop php-cs-fixer and setup phpcs #142

Drop php-cs-fixer and setup phpcs

Drop php-cs-fixer and setup phpcs #142

Workflow file for this run

name: Tests
on: ["push", "pull_request"]
jobs:
build:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: composer validate
- id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}-
- if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- run: composer run test