Skip to content

Commit

Permalink
Create code-style.yml
Browse files Browse the repository at this point in the history
Same CS test that was done in travis.
  • Loading branch information
koriym committed Sep 6, 2023
1 parent aa72d69 commit 57f3636
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: code-style

on:
push:
pull_request:
workflow_dispatch:

jobs:
php-cs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout repository

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- uses: ramsey/composer-install@v2
with:
dependency-versions: 'highest'

- name: Check Code Style
run: ./bin/phpcs -p --extensions=php --standard=PSR2 --error-severity=1 --warning-severity=0 ./src ./tests;

0 comments on commit 57f3636

Please sign in to comment.