Skip to content

Commit

Permalink
Add github action for code style check
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 13, 2023
1 parent 7c34c0d commit eb92347
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Code style

on:
push:
pull_request:

jobs:

check-code-style:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['8.2']

name: "Check code style | PHP ${{ matrix.php }}"

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install PHP with latest composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=-1, display_errors=On, log_errors_max_len=0
coverage: none
tools: none

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v2"

- name: "Check code style"
run: composer run codestyle -- --dry-run

0 comments on commit eb92347

Please sign in to comment.