Add lint front + rollback back lint #376
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 | |
| on: [push, pull_request] | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Backend code formatting check (Black) | |
| uses: psf/black@stable | |
| with: | |
| use_pyproject: true | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Use setup-node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: './atlas/static/.nvmrc' | |
| # cache: 'npm' | |
| # cache-dependency-path: './atlas/static/package-lock.json' | |
| - name: Install dependencies | |
| run: node --version | |
| # working-directory: atlas | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: ./atlas/static | |
| - name: Run check with ESLint | |
| run: npm run lint | |
| working-directory: ./atlas/static |