From cd66d45577d5e8f754604cda22e121ba4142abc9 Mon Sep 17 00:00:00 2001 From: Daniel Burger <48986191+danielburger1337@users.noreply.github.com> Date: Sat, 24 Feb 2024 06:13:57 +0100 Subject: [PATCH] Add php-cs-fixer gh actions workflow --- .github/workflows/phpcsfixer.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/phpcsfixer.yml diff --git a/.github/workflows/phpcsfixer.yml b/.github/workflows/phpcsfixer.yml new file mode 100644 index 0000000..6c4757b --- /dev/null +++ b/.github/workflows/phpcsfixer.yml @@ -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