-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create stub app for admin frontend (#500)
Signed-off-by: Sukanya Rath <[email protected]> Co-authored-by: Sukanya Rath <[email protected]>
- Loading branch information
1 parent
9143ec2
commit 8aa7a55
Showing
140 changed files
with
16,907 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: .E2E | ||
env: | ||
deployment_name: pay-transparency | ||
on: | ||
workflow_dispatch: | ||
secrets: | ||
E2E_ADMIN_USERNAME: | ||
required: true | ||
E2E_ADMIN_PASSWORD: | ||
required: true | ||
inputs: | ||
admin-frontend-url: | ||
description: "URL of the admin frontend application" | ||
required: true | ||
type: string | ||
environment: | ||
description: "Environment to read secrets from GitHub secrets" | ||
required: false | ||
default: dev | ||
type: string | ||
timeout-minutes: | ||
description: "Timeout minutes" | ||
default: 8 | ||
required: false | ||
type: number | ||
workflow_call: | ||
secrets: | ||
E2E_ADMIN_USERNAME: | ||
required: true | ||
E2E_ADMIN_PASSWORD: | ||
required: true | ||
inputs: | ||
admin-frontend-url: | ||
description: "URL of the admin frontend application" | ||
required: true | ||
type: string | ||
environment: | ||
description: "Environment to read secrets from GitHub secrets" | ||
required: false | ||
default: dev | ||
type: string | ||
timeout-minutes: | ||
description: "Timeout minutes" | ||
default: 8 | ||
required: false | ||
type: number | ||
|
||
jobs: | ||
end-to-end: | ||
name: Tests | ||
environment: ${{ inputs.environment }} | ||
defaults: | ||
run: | ||
working-directory: admin-frontend | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: ${{ inputs.timeout-minutes }} | ||
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
project: [chromium, Google Chrome, firefox, safari, Microsoft Edge] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
- uses: actions/setup-node@v4 | ||
name: Setup Node | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
npx playwright install --with-deps | ||
- name: Run Tests | ||
env: | ||
E2E_ADMIN_BASE_URL: ${{ inputs.admin-frontend-url }} | ||
E2E_ADMIN_USERNAME: ${{ secrets.E2E_ADMIN_USERNAME }} | ||
E2E_ADMIN_PASSWORD: ${{ secrets.E2E_ADMIN_PASSWORD }} | ||
run: | | ||
npx playwright test --project="${{ matrix.project }}" --reporter=html | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
name: upload results | ||
env: | ||
PW_TEST_HTML_REPORT_OPEN: always | ||
with: | ||
name: playwright-report-${{ matrix.project }} | ||
path: "./admin-frontend/playwright-report" # path from current folder | ||
retention-days: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.