Add user quota management system #34
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 | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| python-lint: | |
| name: Python (Ruff) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Run Ruff linter | |
| run: ruff check . | |
| - name: Run Ruff formatter check | |
| run: ruff format --check . | |
| frontend-lint: | |
| name: Frontend (ESLint + Prettier) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: runtime/admin/frontend/admin-frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| cache-dependency-path: runtime/admin/frontend/admin-frontend/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run ESLint | |
| run: pnpm run lint | |
| - name: Run Prettier check | |
| run: pnpm run format:check | |
| - name: Run TypeScript check | |
| run: pnpm run type-check | |
| shell-lint: | |
| name: Shell (ShellCheck) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: sudo apt-get install -y shellcheck | |
| - name: Run ShellCheck | |
| run: | | |
| find . -name "*.sh" -o -name "*.bash" | \ | |
| grep -v node_modules | \ | |
| grep -v .git | \ | |
| xargs -r shellcheck | |
| yaml-lint: | |
| name: YAML (yamllint) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: pip install yamllint | |
| - name: Run yamllint | |
| run: yamllint . |