name: Linting PR code on: pull_request: permissions: contents: read jobs: eslint: name: ESLint runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: cache: 'pnpm' node-version-file: 'package.json' - name: Install Dependencies run: pnpm install --frozen-lockfile # The formatter prints workflow commands, which GitHub shows as inline annotations. - name: Run ESLint run: pnpm lint:es --format ./scripts/eslint/githubFormatter.mjs prettier: name: Prettier runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: cache: 'pnpm' node-version-file: 'package.json' - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Check formatting run: pnpm lint:format:ci json-schema: name: JSON Schema runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: cache: 'pnpm' node-version-file: 'package.json' - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Validate icon and category JSON run: pnpm lint:json --format ./scripts/eslint/githubFormatter.mjs spelling: name: Spelling runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: cache: 'pnpm' node-version-file: 'package.json' - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Spell check icon and category metadata run: pnpm lint:spelling:ci