Skip to content

updated test env

updated test env #179

Workflow file for this run

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