refactor: consolidate nav items into menus constants #7
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: Production CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate-and-test: | |
| name: Continuous Integration (CI) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm environment | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build project | |
| run: pnpm run build | |
| # - name: Run code linting | |
| # run: bun run lint | |
| - name: Run TypeScript and Svelte type-checks | |
| run: pnpm run check | |
| - name: Execute unit tests | |
| run: pnpm run test:unit -- --run | |
| # - name: Install Playwright system dependencies | |
| # run: bunx playwright install --with-deps | |
| # - name: Run end-to-end tests | |
| # run: bun run test:e2e | |
| # deploy: | |
| # name: Continuous Deployment (CD) | |
| # needs: validate-and-test | |
| # if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| # runs-on: ubuntu-latest | |
| # environment: production | |
| # steps: | |
| # - name: Checkout repository | |
| # uses: actions/checkout@v4 | |
| # - name: Setup Bun environment | |
| # uses: oven-sh/setup-bun@v2 | |
| # with: | |
| # bun-version: latest | |
| # - name: Install Vercel CLI globally | |
| # run: bun add -g vercel@latest | |
| # - name: Pull Vercel environment configurations | |
| # run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
| # - name: Build Vercel production artifacts | |
| # run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
| # - name: Deploy artifacts to Vercel production | |
| # run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} | |
| # env: | |
| # VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| # VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} |