Repository navigation
Bump phpstan/phpstan from 2.3.0 to 2.3.1 in the phpstan-packages group #3066
Workflow file for this run
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
| name: JS Code Linting | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| - 'release/**' | |
| # Only run if JS/JSON/Lint/NVM files changed. | |
| paths: | |
| - '.github/workflows/js-lint.yml' | |
| - '**.js' | |
| - '**.json' | |
| - 'eslint.config.*' | |
| - '.nvmrc' | |
| - '.wp-env.json' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| pull_request: | |
| # Only run if JS/JSON/Lint/NVM files changed. | |
| paths: | |
| - '.github/workflows/js-lint.yml' | |
| - '**.js' | |
| - '**.json' | |
| - 'eslint.config.*' | |
| - '.nvmrc' | |
| - '.wp-env.json' | |
| - '**/package.json' | |
| - 'package-lock.json' | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| # Cancel previous workflow run groups that have not completed. | |
| concurrency: | |
| # Group workflow runs by workflow name, along with the head branch ref of the pull request | |
| # or otherwise the branch or tag ref. | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| # Disable permissions for all available scopes by default. | |
| # Any needed permissions should be configured at the job level. | |
| permissions: {} | |
| jobs: | |
| js-lint: | |
| name: JS Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read # Required to clone the repo. | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Node.js (via .nvmrc) | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: npm install | |
| run: npm ci | |
| - name: JS Lint | |
| run: npm run lint-js | |
| - name: JSON Schema Validation | |
| run: npm run lint-json | |
| - name: TypeScript compile | |
| run: npm run tsc |