Skip to content

Commit

Permalink
chore(github-actions): add PHP 8.4, trigger workflows on **.php, comm…
Browse files Browse the repository at this point in the history
…it php-cs-fixer changes
  • Loading branch information
Kreyu committed Nov 24, 2024
1 parent 77f49d0 commit d981175
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Code Quality

on:
- push
- pull_request
- workflow_dispatch
push:
pull_request:
workflow_dispatch:
paths:
- '**.php'

jobs:
php-cs-fixer:
Expand All @@ -22,7 +24,12 @@ jobs:
uses: ramsey/composer-install@v2

- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff
run: ./vendor/bin/php-cs-fixer fix --diff

- name: Commit php-cs-fixer changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes

phpstan:
runs-on: ubuntu-latest
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Testing

on:
- push
- pull_request
- workflow_dispatch
push:
pull_request:
workflow_dispatch:
paths:
- '**.php'

jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
php-version: ['8.1', '8.2', '8.3', '8.4']
dependency-version: ['lowest', 'highest']
steps:
- name: Checkout
Expand Down

0 comments on commit d981175

Please sign in to comment.