# Copyright 2019-2023 Tauri Programme within The Commons Conservancy # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT name: Lint JavaScript on: push: branches: - v1 - v2 paths: - '.github/workflows/lint-javascript.yml' - 'plugins/*/guest-js/**' - 'packages/**' - '.eslintignore' - '.eslintrc.json' - '.prettierignore' - '**/package.json' pull_request: branches: - v1 - v2 paths: - '.github/workflows/lint-javascript.yml' - 'plugins/*/guest-js/**' - 'packages/**' - '.eslintignore' - '.eslintrc.json' - '.prettierignore' - '**/package.json' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: contents: read jobs: eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: node-version: 'lts/*' - uses: pnpm/action-setup@v6 with: run_install: true cache: true # the pnpm store, keyed by OS and lockfile hash and shared by every workflow # the type-checked lint rules (and packages/api-e2e) resolve the plugins' # types from their dist-js build output - name: build run: pnpm build - name: eslint run: pnpm lint - name: ts:check run: pnpm ts:check