AP-015: Match shared UI to Employer Panel #48
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: Admin Panel Lint | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'app-frontend/admin-panel/**' | |
| - '.github/workflows/admin-panel-lint.yml' | |
| push: | |
| branches: | |
| - '**' # run on pushes to any branch in your fork | |
| paths: | |
| - 'app-frontend/admin-panel/**' | |
| - '.github/workflows/admin-panel-lint.yml' | |
| workflow_dispatch: {} # allow manual runs from the Actions tab | |
| jobs: | |
| lint: | |
| name: ESLint & Prettier | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: app-frontend/admin-panel | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: app-frontend/admin-panel/package-lock.json | |
| - name: Install dependencies | |
| run: | | |
| if [ -f package-lock.json ]; then | |
| npm ci | |
| else | |
| npm install --no-audit --no-fund | |
| fi | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier check | |
| run: npm run format:check |