Skip to content

PT-453 | Add cultural route support to enrolment form #250

PT-453 | Add cultural route support to enrolment form

PT-453 | Add cultural route support to enrolment form #250

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_API_BASE_URL: https://kultus.api.test.hel.ninja/graphql
NEXT_PUBLIC_APP_ORIGIN: http://localhost:3000
NEXT_PUBLIC_CAPTCHA_KEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
NEXT_PUBLIC_CMS_BASE_URL: https://kultus.app-staging.hkih.hion.dev/graphql
NEXT_PUBLIC_FORMIK_PERSIST: true
NEXT_PUBLIC_HEADLESS_CMS_ENABLED: true
NEXT_PUBLIC_MATOMO_ENABLED: false
# Arbitrary values for Matomo as it is disabled, but still required for build to succeed:
NEXT_PUBLIC_MATOMO_SITE_ID: 68
NEXT_PUBLIC_MATOMO_SRC_URL: matomo.js
NEXT_PUBLIC_MATOMO_TRACKER_URL: matomo.php
NEXT_PUBLIC_MATOMO_URL_BASE: https://analytics.hel.ninja/
NEXT_PUBLIC_NEWSLETTER_ENABLED: false
NEXT_PUBLIC_UNIFIED_SEARCH_BASE_URL: https://kuva-unified-search.api.test.hel.ninja/search
PORT: 3000
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Build production application
run: yarn build
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn test:browser:ci
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30