Skip to content

Commit

Permalink
Check PRs with phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 13, 2024
1 parent ad05d9e commit 3af849f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Coding standards

on:
pull_request:
types: [ opened, synchronize ]

jobs:
php:
name: PHP
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: 'none'
tools: composer, cs2pr

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--no-progress --no-ansi --no-interaction"

- name: Run PHPCS
run: vendor/bin/phpcs -n -q --report=checkstyle | cs2pr

0 comments on commit 3af849f

Please sign in to comment.