From ef52dab766aa482cdbaadabc4b4594f075e1c02c Mon Sep 17 00:00:00 2001 From: Aidan Casey Date: Wed, 21 Feb 2024 14:37:00 -0500 Subject: [PATCH] Just doing some testing. --- .github/workflows/php-cs-fixer.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 9e18d195c..c0c8e0cbf 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -1,31 +1,17 @@ name: PHP-CS-Fixer -on: [pull_request] +on: [push, pull_request] jobs: style: name: Check Styling runs-on: ubuntu-latest - permissions: write-all steps: - name: Checkout code uses: actions/checkout@v4 - name: Run PHP-CS-Fixer - id: csFixer uses: docker://oskarstark/php-cs-fixer-ga with: - args: --config=.php-cs-fixer.dist.php --allow-risky=yes -v --dry-run - - - name: Remind User to run QA - if: failure() && steps.csFixer.outcome == 'failure' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Thanks for the pull request! Unfortunately, it appears that your code does not adhere to our style guide. Please run `composer qa` to automagically fix this and then commit your changes!' - }) \ No newline at end of file + args: --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run -v \ No newline at end of file