Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ jobs:
"command": [
"sh",
"-c",
"npx playwright install && npx playwright test"
"echo 'Cloning Playwright tests from GitHub...'; \
git clone https://github.com/cisagov/xfd.git /app/xfd; \
cd /app/xfd/playwright && \
echo 'Running Playwright tests'; \
npx playwright test"

]
}
]
Expand Down Expand Up @@ -129,12 +134,19 @@ jobs:
{
"name": "main",
"command": [
"sh",
"-c",
"npx playwright install && npx playwright test"
]
}
]
{
"name": "main",
"command": [
"sh",
"-c",
"echo 'Cloning Playwright tests from GitHub...'; \
git clone https://github.com/cisagov/xfd.git /app/xfd; \
cd /app/xfd/playwright && \
echo 'Running Playwright tests'; \
npx playwright test"
]
}
]
}'
continue-on-error: false # Ensure it stops if the ECS task fails

Expand All @@ -146,7 +158,7 @@ jobs:

- name: Upload HTML report to S3
run: |
aws s3 cp ./playwright-report/html \
aws s3 cp ./playwright-report/ \
s3://${{ vars.AUTOMATED_TEST_REPORT_BUCKET_NAME }}/\
playwright-reports/html/ --recursive || \
{ echo "HTML report upload failed"; exit 1; }
Expand Down
5 changes: 5 additions & 0 deletions infrastructure/playwright.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ resource "aws_ecs_task_definition" "playwright_worker" {
"name": "TEST_URL",
"value": "${var.frontend_domain}"
}
],
"command": [
"sh",
"-c",
"echo 'Installing Playwright...'; npx playwright install --with-deps"
]
}
]
Expand Down
Loading