Skip to content

III-6364-Request ownership from the organizer detail page #851

III-6364-Request ownership from the organizer detail page

III-6364-Request ownership from the organizer detail page #851

Workflow file for this run

name: E2E
on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
jobs:
test-e2e:
if: github.event.pull_request.draft == false
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.20'
- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn add @playwright/test@latest --ignore-engines
npx playwright install
- uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
- name: Install Playwright Browsers
run: yarn playwright install chromium --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Run Playwright tests
env:
AUTH0_BASE_URL: ${{ secrets.AUTH0_BASE_URL }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_ISSUER_BASE_URL: ${{ secrets.AUTH0_ISSUER_BASE_URL }}
AUTH0_SECRET: ${{ secrets.AUTH0_SECRET }}
NEXT_PUBLIC_AUTH0_DOMAIN: ${{ secrets.NEXT_PUBLIC_AUTH0_DOMAIN }}
NEXT_PUBLIC_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_AUTH_DOMAIN }}
NEXT_PUBLIC_LEGACY_AUTH_DOMAIN: ${{ secrets.NEXT_PUBLIC_LEGACY_AUTH_DOMAIN }}
NEXT_PUBLIC_ENVIRONMENT: ${{ secrets.NEXT_PUBLIC_ENVIRONMENT }}
NEXT_PUBLIC_API_KEY: ${{ secrets.NEXT_PUBLIC_API_KEY }}
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_LEGACY_APP_URL: ${{ secrets.NEXT_PUBLIC_LEGACY_APP_URL }}
NEXT_PUBLIC_AUTH_URL: ${{ secrets.NEXT_PUBLIC_AUTH_URL }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
NEXT_PUBLIC_SOCKET_URL: ${{ secrets.NEXT_PUBLIC_SOCKET_URL }}
NEXT_PUBLIC_NEW_ANNOUNCEMENTS_URL: ${{ secrets.NEXT_PUBLIC_NEW_ANNOUNCEMENTS_URL }}
NEXT_PUBLIC_NEWSLETTER_API_URL: ${{ secrets.NEXT_PUBLIC_NEWSLETTER_API_URL }}
NEXT_PUBLIC_NEWSLETTER_EMAIL_LIST_ID: ${{ secrets.NEXT_PUBLIC_NEWSLETTER_EMAIL_LIST_ID }}
NEXT_PUBLIC_TAXONOMY_URL: ${{ secrets.NEXT_PUBLIC_TAXONOMY_URL }}
NEXT_PUBLIC_CULTUURKUUR_LOCATION_ID: ${{ secrets.NEXT_PUBLIC_CULTUURKUUR_LOCATION_ID }}
NEXT_PUBLIC_SHOULD_SHOW_BETA_VERSION: ${{ secrets.NEXT_PUBLIC_SHOULD_SHOW_BETA_VERSION }}
E2E_TEST_EMAIL: ${{ secrets.E2E_TEST_EMAIL }}
E2E_TEST_PASSWORD: ${{ secrets.E2E_TEST_PASSWORD }}
LEGACY_AUTH_SECRET: ${{ secrets.LEGACY_AUTH_SECRET }}
LEGACY_AUTH_BASE_URL: ${{ secrets.LEGACY_AUTH_BASE_URL }}
LEGACY_AUTH_ISSUER_BASE_URL: ${{ secrets.LEGACY_AUTH_ISSUER_BASE_URL }}
LEGACY_AUTH_CLIENT_ID: ${{ secrets.LEGACY_AUTH_CLIENT_ID }}
LEGACY_AUTH_CLIENT_SECRET: ${{ secrets.LEGACY_AUTH_CLIENT_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
AUTH_BASE_URL: ${{ secrets.AUTH_BASE_URL }}
AUTH_ISSUER_BASE_URL: ${{ secrets.AUTH_ISSUER_BASE_URL }}
AUTH_CLIENT_ID: ${{ secrets.AUTH_CLIENT_ID }}
AUTH_CLIENT_SECRET: ${{ secrets.AUTH_CLIENT_SECRET }}
run: yarn test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30