Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Mar 29, 2023
1 parent a522026 commit 4b755d6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
if: ${{ github.event_name != 'pull_request' }}
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Run PHP CS Fixer
if: ${{ github.event_name != 'pull_request' }}
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.php --allow-risky=yes

- name: Commit changes
if: ${{ github.event_name != 'pull_request' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling

- name: Set completion to true
env:
csFixerComplete: true

test:
runs-on: ${{ matrix.os }}
if: always()
needs: php-cs-fixer
if: "!contains(github.event.head_commit.message, '[ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
Expand Down

0 comments on commit 4b755d6

Please sign in to comment.