Syntax x Prettier (#16462) #25806
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
- patch-release | |
- next | |
pull_request: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Check Dependencies | |
run: yarn lint:deps | |
- name: Check JSDoc Types | |
run: yarn lint:typecheck | |
- name: Lint ESLint | |
run: yarn lint:eslint | |
- name: Lint Prettier | |
run: yarn lint:prettier | |
- name: Spellcheck | |
run: yarn lint:spellcheck | |
- name: Lint Changelog | |
run: yarn lint:changelog | |
- name: Lint blog post | |
run: yarn lint:blog | |
- name: Lint docs code block | |
run: yarn prettier "{docs,website/versioned_docs/version-stable}/**/*.md" --check | |
env: | |
# Make Prettier throws on embeded format | |
PRETTIER_DEBUG: true | |
- name: Lint workflow files | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
shell: bash | |
- name: Validate renovate config | |
run: npx --package renovate -c renovate-config-validator | |
- name: Run yarn (/) | |
run: | | |
yarn | |
yarn dedupe --check | |
- name: Run yarn (/website) | |
run: | | |
yarn | |
yarn dedupe --check | |
working-directory: website | |
- name: Run yarn (/scripts/release) | |
run: | | |
yarn | |
yarn dedupe --check | |
working-directory: scripts/release | |
- name: Run yarn (/scripts/tools/bundle-test) | |
run: | | |
yarn | |
yarn dedupe --check | |
working-directory: scripts/tools/bundle-test | |
- name: Run yarn (/scripts/tools/eslint-plugin-prettier-internal-rules) | |
run: | | |
yarn | |
yarn dedupe --check | |
working-directory: scripts/tools/eslint-plugin-prettier-internal-rules | |
- name: Check File Changes | |
run: echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint." |