Skip to content

Commit

Permalink
Merge pull request #1496 from bcgov/feature/ALCS-1689
Browse files Browse the repository at this point in the history
Create initial E2E workflow
  • Loading branch information
trslater authored Mar 12, 2024
2 parents 3a6c5d0 + 41ce1dd commit 78db56d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: E2E Testing w/ Playwright
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
schedule:
# 5:23 am daily
- cron: "23 5 * * *"
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# This does not need to align with URL
ref: 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 }}
BCEID_BASIC_USERNAME: ${{ secrets.BCEID_BASIC_USERNAME }}
BCEID_BASIC_PASSWORD: ${{ secrets.BCEID_BASIC_PASSWORD }}
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 78db56d

Please sign in to comment.