diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 24ef1c6f..9179eede 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -1,9 +1,11 @@ name: Code Quality on: - - push - - pull_request - - workflow_dispatch + push: + pull_request: + workflow_dispatch: + paths: + - '**.php' jobs: php-cs-fixer: @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 8c795a60..e9b19432 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,9 +1,11 @@ name: Testing on: - - push - - pull_request - - workflow_dispatch + push: + pull_request: + workflow_dispatch: + paths: + - '**.php' jobs: phpunit: @@ -11,7 +13,7 @@ jobs: 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