Use the consolidated PHP and JavaScript check workflows #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |