183 front task chore production ci #32
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: "E2E Test" | |
| # on: | |
| # pull_request: | |
| # branches: | |
| # - develop | |
| # jobs: | |
| # test-setup: | |
| # name: Test setup | |
| # runs-on: ubuntu-latest | |
| # outputs: | |
| # preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }} | |
| # steps: | |
| # - name: Waiting for 200 from the Vercel Preview | |
| # uses: patrickedqvist/[email protected] | |
| # id: waitForVercelPreviewDeployment | |
| # with: | |
| # token: ${{ secrets.GITHUB_TOKEN }} | |
| # max_timeout: 300 | |
| # e2e-test: | |
| # needs: test-setup | |
| # name: Playwright tests | |
| # timeout-minutes: 60 | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - uses: actions/setup-node@v4 | |
| # with: | |
| # node-version: 18 | |
| # cache: "yarn" | |
| # - name: Install dependencies | |
| # run: yarn | |
| # - name: Install playwright | |
| # run: yarn playwright install --with-deps | |
| # - name: Run playwright tests | |
| # run: npx playwright test | |
| # env: | |
| # PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test-setup.outputs.preview_url }} | |
| # # run: yarn e2e:ui | |
| # # env: | |
| # # BASE_URL: ${{ steps.waitForDeploy.outputs.url }} | |
| # # env: | |
| # # PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | |
| name: Playwright Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Install Playwright Browsers | |
| run: yarn playwright install --with-deps | |
| - name: Run Playwright tests | |
| run: yarn playwright test | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | |
| NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| - uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 | |
| # jobs: | |
| # # access preview url | |
| # e2e-test: | |
| # timeout-minutes: 60 | |
| # runs-on: ubuntu-latest | |
| # environment: playwright | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - uses: actions/setup-node@v4 | |
| # with: | |
| # node-version: 18 | |
| # - name: Install dependencies | |
| # run: yarn | |
| # - name: Install Playwright Browsers | |
| # run: yarn playwright install --with-deps | |
| # - name: Run Playwright tests | |
| # run: npx playwright test | |
| # - uses: actions/upload-artifact@v4 | |
| # if: ${{ !cancelled() }} | |
| # with: | |
| # name: playwright-report | |
| # path: playwright-report/ | |
| # retention-days: 30 |