diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-14 17:43:12 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-12 15:59:00 +0300 |
commit | 877166cf799bcd298539680043a187d402633c3f (patch) | |
tree | 24234a590c3dd83445f2c8e49f0fd61197988fff /.github | |
parent | 43ed8be95a031d7021711ceddcc5c4a49f9d680a (diff) |
Add PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 410fd2bcf..cccd9d9f8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,6 +28,29 @@ jobs: - name: Lint run: "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" + php-cs: + runs-on: ubuntu-latest + + strategy: + matrix: + php-versions: ['7.4'] + + name: php${{ matrix.php-versions }} CS + steps: + - uses: actions/checkout@v2 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + + - name: Composer + run: composer install + + - name: Check CS + run: composer run cs:check + node: runs-on: ubuntu-latest |