feat(frontend): bring the market and staking journey to WCAG 2.2 AA #168
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 Next.js CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - 'packages/frontend/**' | |
| - 'pnpm-lock.yaml' | |
| - 'package.json' | |
| - 'turbo.json' | |
| - '.github/workflows/frontend.yml' | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - 'packages/frontend/**' | |
| - 'pnpm-lock.yaml' | |
| - 'package.json' | |
| - 'turbo.json' | |
| - '.github/workflows/frontend.yml' | |
| jobs: | |
| frontend-ci: | |
| name: Frontend Lint, Typecheck & Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Setup Next.js build cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| packages/frontend/.next/cache | |
| # Change key whenever dependency lockfile or source files change | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('packages/frontend/src/**.[jt]s', 'packages/frontend/src/**.[jt]sx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Frontend Lint | |
| run: pnpm --filter @backit/frontend lint | |
| - name: Run TypeScript Checks | |
| run: pnpm --filter @backit/frontend type-check | |
| - name: Verify Production Build | |
| run: pnpm --filter @backit/frontend build |