Live/* Endpoints (#7) #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
push: | |
branches: | |
- main | |
- '*.x' | |
pull_request: | |
jobs: | |
phpstan: | |
name: PHPStan Analysis | |
runs-on: ubuntu-latest | |
env: | |
COMPOSER_NO_INTERACTION: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer update --prefer-dist --no-interaction --no-progress | |
- name: Run PHPStan | |
run: composer phpstan -- --no-progress | |
style: | |
name: PHP-CS-Fixer Analysis | |
runs-on: ubuntu-latest | |
env: | |
COMPOSER_NO_INTERACTION: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer update --prefer-dist --no-interaction --no-progress | |
- name: Check style | |
run: composer lint | |