Skip to content

Merge pull request #215 from shuangela/DOCSP-47835-clarify-batchsize #86

Merge pull request #215 from shuangela/DOCSP-47835-clarify-batchsize

Merge pull request #215 from shuangela/DOCSP-47835-clarify-batchsize #86

name: "Coding Standards"
on:
pull_request:
paths:
- "source/**/*.php"
- ".github/workflows/*.yml"
env:
PHP_VERSION: "8.2"
DRIVER_VERSION: "stable"
jobs:
phpcs:
name: "phpcs"
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup"
uses: "./.github/actions/setup"
with:
php-version: ${{ env.PHP_VERSION }}
driver-version: ${{ env.DRIVER_VERSION }}
# The -q option is required until phpcs v4 is released
- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"