Skip to content

Commit

Permalink
Update GitHub Actions to refine pull request triggers
Browse files Browse the repository at this point in the history
This commit updates the GitHub workflow for PHPunit, PHPCS, and node tests. The workflows are now triggered only pull requests towards the develop branch and exclude draft pull requests. This prevents unnecessary running of these workflows on every pull request. Additionally, the PHP version for PHPCS has been updated from 8.0 to 8.2 to align with the latest PHP version usage.
  • Loading branch information
attackant committed Oct 31, 2023
1 parent ec87ffa commit 4dd2584
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/node-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Node Tests

on:
pull_request:
branches:
- develop
types: [ opened, synchronize, reopened, ready_for_review ]

jobs:
node-tests:
if: github.event.pull_request.draft == false
uses: alleyinteractive/.github/.github/workflows/node-tests.yml@main
with:
ci: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
phpcs:
strategy:
matrix:
php: [ 8.0 ]
php: [ 8.2 ]
if: github.event.pull_request.draft == false
uses: alleyinteractive/.github/.github/workflows/php-coding-standards.yml@main
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: Testing Suite

on:
pull_request:
branches:
- develop
types: [ opened, synchronize, reopened, ready_for_review ]

jobs:
php-tests:
strategy:
matrix:
php: ['8.2', '8.1', '8.0', '7.4']
wordpress: ["latest"]
if: github.event.pull_request.draft == false
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@main
with:
command: "test"
Expand Down

0 comments on commit 4dd2584

Please sign in to comment.