setup openapi generator #19
Workflow file for this run
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 Format Check | |
| on: | |
| pull_request: | |
| paths: | |
| - 'client/**' | |
| workflow_dispatch: | |
| jobs: | |
| client-lint-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.18.0' | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: client | |
| - name: Run ESLint | |
| run: npm run lint | |
| working-directory: client | |
| - name: Run Prettier for formatting check | |
| run: npx prettier --check "src/**/*.{ts,tsx}" | |
| working-directory: client | |
| - name: Fix Prettier formatting | |
| run: npm run format | |
| working-directory: client | |
| if: failure() | |