Juno DEX #72
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 CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - "services/indexer/**" | |
| - ".github/workflows/frontend.yml" | |
| push: | |
| paths: | |
| - "frontend/**" | |
| - "services/indexer/**" | |
| - ".github/workflows/frontend.yml" | |
| jobs: | |
| validate: | |
| name: Typecheck, lint, test, and build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm test | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Playwright E2E | |
| run: npm run test:e2e | |
| - name: Build | |
| run: npm run build |