name: "coding standards" on: pull_request: ~ push: ~ jobs: coding-standards: name: "coding standards" runs-on: "ubuntu-latest" steps: - name: "checkout" uses: "actions/checkout@v2" - name: "installing PHP" uses: "shivammathur/setup-php@v2" with: php-version: "8.1" ini-values: memory_limit=-1 tools: composer:v2, cs2pr extensions: bcmath, mbstring, intl, sodium, json - name: "installing dependencies" run: "composer update --no-interaction --no-progress" - name: "checking coding standards ( codesniffer )" run: "php vendor/bin/phpcs" - name: "checking coding standards ( php-cs-fixer )" run: "PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --dry-run --diff --ansi"