initial #1
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: Quality Checks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - .github/workflows/quality-checks.yml # Ignore changes to this file | |
| # Allows you to run this workflow manually from the Actions tap on GitHub. | |
| workflow_dispatch: | |
| jobs: | |
| quality-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm run test:run | |
| - name: Run TypeScript type checking | |
| run: npm run type-check | |
| - name: Run ESLint and fix | |
| run: npm run lint:fix | |
| - name: Format with Prettier | |
| run: npm run format | |
| - name: Check for remaining ESLint errors | |
| run: npm run lint | |
| - name: Check for remaining formatting issues | |
| run: npm run format:check |