Repository navigation
Feat/integrate panel design #463
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: Frontend Pre-commit | |
| on: | |
| pull_request: | |
| paths: | |
| - 'frontend/**' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'frontend/**' | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| cache-dependency-path: 'frontend/package-lock.json' | |
| - name: Install dependencies | |
| run: npm ci | |
| # Run linters from pre-commit config | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier | |
| run: npm run format -- --check |