Skip to content

Deployment PR - 1337 #385

Deployment PR - 1337

Deployment PR - 1337 #385

Workflow file for this run

name: E2E
on:
workflow_dispatch:
inputs:
portalBaseUrl:
type: choice
description: Portal Base URL
options:
- https://alcs-dev-portal.apps.silver.devops.gov.bc.ca
- https://alcs-test-portal.apps.silver.devops.gov.bc.ca
alcsBaseUrl:
type: choice
description: ALCS Base URL
options:
- https://alcs-dev.apps.silver.devops.gov.bc.ca
- https://alcs-test.apps.silver.devops.gov.bc.ca
branch:
type: string
description: 'Branch to checkout'
default: 'develop'
schedule:
# 12:23 UTC (i.e., 5:23 am daily pacific time)
- cron: "23 12 * * *"
pull_request:
branches:
- main
jobs:
test:
name: Playwright Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# This does not need to align with URL
ref: ${{ inputs.branch || 'develop' }}
- uses: actions/setup-node@v4
- name: Install dependencies
working-directory: ./e2e
run: npm ci
- name: Install Playwright Browsers
working-directory: ./e2e
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: ./e2e
env:
# Default to dev
PORTAL_BASE_URL: ${{ inputs.portalBaseUrl || 'https://alcs-dev-portal.apps.silver.devops.gov.bc.ca' }}
ALCS_BASE_URL: ${{ inputs.alcsBaseUrl || 'https://alcs-dev.apps.silver.devops.gov.bc.ca' }}
BCEID_BASIC_USERNAME: ${{ secrets.BCEID_BASIC_USERNAME }}
BCEID_BASIC_PASSWORD: ${{ secrets.BCEID_BASIC_PASSWORD }}
PRIMARY_CONTACT_EMAIL: ${{ secrets.PRIMARY_CONTACT_EMAIL }}
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 30