feat: Add support for push, pull_request, and workflow_dispatch events #565
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: Lint Codebase | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| packages: read | |
| statuses: write | |
| jobs: | |
| lint: | |
| name: Lint Codebase | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # To write linting fixes | |
| contents: write | |
| packages: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install Dependencies | |
| id: install | |
| run: npm ci | |
| - name: lint | |
| id: lint | |
| run: npm run lint |