Fix all lint:js warnings and enforce zero-warning policy #672
This file contains hidden or 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: Static Analysis (Linting) | |
| # This workflow is triggered on pushes to trunk, and any PRs. | |
| on: | |
| push: | |
| branches: [trunk] | |
| pull_request: | |
| jobs: | |
| check: | |
| name: All | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install NPM dependencies | |
| run: npm install | |
| - name: Lint JavaScript | |
| run: npm run lint:js |