suyuan/vendor/overtrue/socialite/.github/workflows/lint.yml

35 lines
1.0 KiB
YAML
Raw Normal View History

2023-10-14 13:36:39 +08:00
name: Lint
on: [push, pull_request]
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: composer validate --strict
- run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
id: composer-cache
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-caches-php-${{ hashFiles('**/composer.lock') }}
restore-keys: dependencies-caches-php-
- run: composer install --no-progress
- run: composer phpstan
php_cs_fixer:
name: PHP-CS-Fxier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
id: composer-cache
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-caches-php-${{ hashFiles('**/composer.lock') }}
restore-keys: dependencies-caches-php-
- run: composer install --no-progress
- run: composer check-style