Repository navigation
Merge pull request #2 from MichaelGahnDESIGN/codex/private-no-cost-re… #19
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 & Type Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| lint: | |
| runs-on: [self-hosted, Linux] | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| continue-on-error: false | |
| - name: Run TypeScript type check | |
| run: npm run type-check | |
| continue-on-error: false | |
| - name: Run tests | |
| run: npm run test -- --coverage | |
| continue-on-error: true | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v3 | |
| if: always() | |
| with: | |
| files: ./coverage/coverage-final.json | |
| flags: unittests | |
| name: codecov-umbrella |