pay/.github/workflows/Linter.yml
2021-01-10 15:59:16 +08:00

23 lines
545 B
YAML

name: Linter
on: [push, pull_request]
jobs:
php_cs_fixer:
name: php_cs_fixer-php-${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 7.3
- 7.4
container:
image: yansongda/php-fpm:${{ matrix.php }}
steps:
- name: Checkout Code
uses: actions/checkout@master
- name: Install Dependencies
run: composer install --no-progress
- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff 1>&2