Skip to content

Commit

Permalink
Add a coding standard workflow to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Jan 7, 2024
1 parent bf58ebe commit a6e767b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Coding Standards

on:
pull_request:
push:

jobs:
coding-standards:
name: Coding Standards

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
php-version:
- 8.3
operating-system:
- ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP
uses: shivamathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
ini-values: memory_limit=-1
tools: composer:v2, cs2pr

- name: Run Codesniffer
run: vendor/bin/phpcs

0 comments on commit a6e767b

Please sign in to comment.