generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f007080
commit 4a51cea
Showing
1 changed file
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Run e2e (browser) tests | ||
on: | ||
pull_request: | ||
branches: | ||
- bau/playwright-dev-test | ||
workflow_call: | ||
inputs: | ||
copilot_environment: | ||
description: "Copilot environment to deploy to" | ||
type: string | ||
default: dev | ||
workflow_dispatch: | ||
inputs: | ||
copilot_environment: | ||
description: "Copilot environment to deploy to" | ||
type: choice | ||
options: | ||
- dev | ||
- test | ||
default: dev | ||
|
||
jobs: | ||
run_tests: | ||
name: e2e tests | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.copilot_environment }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' # caching pip dependencies | ||
- name: Install dependencies | ||
run: pip install -r requirements-dev.txt | ||
- name: Run tests | ||
run: pytest tests --e2e --e2e-env ${{ inputs.copilot_environment }} |