Skip to content

Commit

Permalink
Add php-cs-fixer gh actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed Feb 24, 2024
1 parent affced1 commit cd66d45
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/phpcsfixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PHPCSFixer

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

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

strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.3"]

name: PHPCSFixer with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Install Composer packages
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run PHPCSFixer
run: $GITHUB_WORKSPACE/vendor/bin/php-cs-fixer fix --dry-run

0 comments on commit cd66d45

Please sign in to comment.