name: Lint on: push: branches: - "**" paths: - 'backend/**' - 'frontend/**' - '.github/workflows/lint.yml' pull_request: branches: - main - master paths: - 'backend/**' - 'frontend/**' - '.github/workflows/lint.yml' workflow_dispatch: {} jobs: lint: name: Lint runs-on: ubuntu-latest defaults: run: working-directory: frontend permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4 with: submodules: false - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' cache-dependency-path: frontend/package-lock.json - name: Install dependencies run: | npm ci --prefix ../shared --ignore-scripts --no-audit --no-fund npm run build --prefix ../shared npm ci - name: Run ESLint run: npm run lint