Add/switch feed v5 #1448
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: PHP Coding Standards | |
on: | |
push: | |
branches: | |
- trunk | |
- develop | |
paths: | |
- "**.php" | |
- .github/workflows/php-coding-standards.yml | |
pull_request: | |
paths: | |
- "**.php" | |
- .github/workflows/php-coding-standards.yml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
phpcs: | |
name: PHP coding standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Prepare PHP | |
uses: woocommerce/grow/prepare-php@actions-v1 | |
with: | |
php-version: '7.3' | |
tools: cs2pr | |
- name: Log PHPCS debug information | |
run: vendor/bin/phpcs -i | |
- name: Run PHPCS on all files | |
run: vendor/bin/phpcs . -q -n --report=checkstyle | cs2pr | |
- name: PHP 8.2 Syntax Check | |
uses: overtrue/[email protected] |