Skip to content

Support build and deployment within K8 against custom subdomain #419

Support build and deployment within K8 against custom subdomain

Support build and deployment within K8 against custom subdomain #419

Workflow file for this run

name: e2e-tests-on-pr
on:
pull_request:
branches:
- main
workflow_dispatch:
env:
TEST_URL: localhost
TEST_PORT: 8080
TEST_PATH_PREFIX: '/test/'
jobs:
e2e-test:
runs-on: ubuntu-22.04
container: cypress/browsers:node-20.5.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Run Cypress Tests
uses: cypress-io/github-action@v6
with:
browser: chrome
build: npm run build
start: npm run serve -- --port ${{ env.TEST_PORT }}
wait-on: 'http://${{ env.TEST_URL }}:${{ env.TEST_PORT }}${{ env.TEST_PATH_PREFIX }}'
config: 'video=false,screenshotOnRunFailure=false'
env:
CYPRESS_TEST_URL: ${{ env.TEST_URL }}
CYPRESS_TEST_PORT: ${{ env.TEST_PORT }}
CYPRESS_TEST_PATH_PREFIX: ${{ env.TEST_PATH_PREFIX }}
PATH_PREFIX: ${{ env.TEST_PATH_PREFIX }}