Update: For synced entities the icon should be purple. #106000
Workflow file for this run
This file contains 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: Static Analysis (Linting, License, Type checks...) | |
on: | |
pull_request: | |
push: | |
branches: | |
- trunk | |
- 'release/**' | |
- 'wp/**' | |
# Cancels all previous workflow runs for pull requests that have not completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name for pull requests | |
# or the commit hash for any other events. | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: All | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} | |
- name: Use desired version of Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version-file: '.nvmrc' | |
check-latest: true | |
cache: npm | |
- name: Npm install | |
# A "full" install is executed, since `npm ci` does not always exit | |
# with an error status code if the lock file is inaccurate. This also | |
# helps to catch dependencies not being installed with exact version. | |
# | |
# See: https://github.com/WordPress/gutenberg/issues/16157 | |
# See: https://github.com/WordPress/gutenberg/pull/39865 | |
run: npm install | |
- name: Lint JavaScript and Styles | |
run: npm run lint | |
- name: Type checking | |
run: npm run build:package-types | |
- name: Check local changes | |
run: npm run other:check-local-changes | |
- name: License compatibility | |
run: npm run other:check-licenses |