Feat/429 441 refactor architecture frontend #120
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: Jobboard Frontend Test Deployment (PR) | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| paths: | |
| - "apps/jobboard-frontend/**" | |
| - ".github/workflows/frontend-deploy-test.yml" | |
| concurrency: | |
| group: frontend-deploy-test | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| name: Build and Deploy to Cloudflare Pages Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/jobboard-frontend | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| cache-dependency-path: apps/jobboard-frontend/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build project | |
| run: pnpm run build | |
| env: | |
| VITE_API_URL: https://jobboard-backend-test-728855696411.europe-west1.run.app | |
| VITE_ENV: test | |
| - name: Deploy to Cloudflare Pages Test Environment | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy apps/jobboard-frontend/dist --project-name=bounswe-jobboard-test --branch=test | |
| wranglerVersion: '3' |