Skip to content

Commit

Permalink
ci: expand conditions for CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Nov 25, 2024
1 parent d5e8eb8 commit db754a4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Fix PHP code style issues

on:
push:
paths:
- '**.php'
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: write
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: PHPStan

on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'
- '.github/workflows/phpstan.yml'
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
phpstan:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
coverage: none

- name: Install composer dependencies
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: release-please

on:
push:
branches:
- main
branches: [main]

jobs:
release-please:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: run-tests

on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
Expand Down

0 comments on commit db754a4

Please sign in to comment.