Feat/integration tests #178
Workflow file for this run
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: "PHPCS - Code Sniffer" | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
- develop | |
permissions: | |
contents: read | |
jobs: | |
php-cs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: mbstring, xml, ctype, iconv, grpc | |
coverage: pcov | |
tools: cs2pr, composer | |
- uses: "ramsey/composer-install@v3" | |
with: | |
composer-options: "--no-interaction --no-progress --quiet --prefer-dist" | |
custom-cache-key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.lock') }} | |
- name: "PHPCS Standards Scan" | |
run: vendor/bin/phpcs --standard=./config/analysis/phpcs.xml --report=checkstyle | cs2pr --graceful-warnings --colorize --notices-as-warnings |