Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/js-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Run ESLint, Stylelint, package.json linting, and unit tests in a single job.
#
# Each check runs only when the project defines an npm script for it, so this
# file is safe to sync to a repository that has only some of them. A check the
# project is half set up for is reported on the pull request rather than failed.
#
# This file is managed in https://github.com/happyprime/projects
name: JavaScript checks

on: pull_request

# The consolidated workflow comments on the pull request when a project is set
# up for a check it cannot run. A workflow level permissions block caps what a
# reusable workflow receives, so the write scope is granted here.
permissions:
contents: read
pull-requests: write

jobs:
call-workflow:
uses: happyprime/workflows/.github/workflows/js-checks.yml@trunk
with:
node-version: 24
35 changes: 35 additions & 0 deletions .github/workflows/php-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Run PHPCS, PHPStan, and PHPUnit in a single job.
#
# Each check runs only when the project is configured for it, so this file is
# safe to sync to a repository that has only some of them. A check the project
# is configured for but cannot run is reported on the pull request rather than
# failed.
#
# This file is managed in https://github.com/happyprime/projects
name: PHP checks

on:
push:
branches:
- trunk
- develop
pull_request:
branches:
- trunk
- develop

# The consolidated workflow comments on the pull request when a project is
# configured for a check it cannot run. A workflow level permissions block caps
# what a reusable workflow receives, so the write scope is granted here.
permissions:
contents: read
pull-requests: write

jobs:
call-workflow:
uses: happyprime/workflows/.github/workflows/php-checks.yml@trunk
with:
php-version: '8.4'
wp-versions: 'latest trunk'
secrets:
composer-auth-token: ${{ secrets.COMPOSER_AUTH_TOKEN }}
21 changes: 0 additions & 21 deletions .github/workflows/phpcs.yml

This file was deleted.

Loading
Loading