Skip to content

Add php-cs-fixer and phpunit github actions. Use cego's php-cs-fixer ruleset. #30

Add php-cs-fixer and phpunit github actions. Use cego's php-cs-fixer ruleset.

Add php-cs-fixer and phpunit github actions. Use cego's php-cs-fixer ruleset. #30

---
name: lint
on:
push: {}
pull_request: {}
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [8.2, 8.3]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- run: composer install
- run: ./vendor/bin/phpunit
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [8.2, 8.3]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- run: composer install
- run: ./vendor/bin/php-cs-fixer fix --dry-run