Add swagger functions to utilities #26
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 and Type Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release/** | |
| - epic/** | |
| push: | |
| branches: | |
| - main | |
| - release/** | |
| - epic/** | |
| workflow_call: | |
| jobs: | |
| lint: | |
| name: Lint and Type Check | |
| 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: Install dependencies | |
| run: npm ci | |
| - name: Generate Prisma Client | |
| run: npm run generate:static | |
| - name: Build packages | |
| run: npm run build | |
| - name: Run Prettier check | |
| run: npm run prettier | |
| env: | |
| PRETTIER_IGNORE_PATTERN: '**/dist/**' | |
| - name: Run ESLint | |
| run: npm run lint | |
| env: | |
| ESLINT_IGNORE_PATTERN: '**/dist/**' | |
| - name: Run TypeScript check | |
| run: npm run typecheck | |
| env: | |
| TS_IGNORE_PATTERN: '**/dist/**' |