Skip to content

Use the consolidated PHP and JavaScript check workflows #4

Use the consolidated PHP and JavaScript check workflows

Use the consolidated PHP and JavaScript check workflows #4

Workflow file for this run

# 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