Skip to content

Commit

Permalink
Just doing some testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-casey committed Feb 21, 2024
1 parent ae2e754 commit ef52dab
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -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!'
})
args: --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run -v

0 comments on commit ef52dab

Please sign in to comment.