name: ext-v2 guardrails on: pull_request: push: branches: - main - master - develop jobs: guardrails: name: Run ext-v2 guard and ESLint runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Upgrade npm to version 11 run: npm install -g npm@11 - name: Install dependencies run: | if ! npm ci --legacy-peer-deps; then echo "npm ci failed; attempting npm install fallback to regenerate lock data" npm install --legacy-peer-deps fi - name: Run legacy extension grep guard run: npm run guard:ext-v2 - name: Run ESLint (errors only) env: NODE_OPTIONS: --max-old-space-size=16384 run: npm run lint -- --quiet