chore: rename attribute namespace #42
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: PHPStan | |
on: | |
push: | |
pull_request: | |
types: [opened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Static analysis | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: "8.1" | |
tools: cs2pr | |
- name: Install dependencies with composer | |
run: composer update --no-progress --no-interaction --prefer-dist | |
- if: ${{ github.base_ref == '' }} | |
run: composer phpstan | |
- name: Run a static analysis with phpstan/phpstan | |
if: ${{ github.base_ref != '' }} | |
run: composer phpstan -- --error-format=checkstyle | cs2pr |