Skip to content

Commit 5e7e44b

Browse files
authored
Run E2E tests in CI when E2E test source changes (#910)
1 parent fcd36e2 commit 5e7e44b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/validate.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
validate-iac: ${{ steps.check.outputs.validate-iac }}
2525
validate-backend: ${{ steps.check.outputs.validate-backend }}
2626
validate-frontend: ${{ steps.check.outputs.validate-frontend }}
27+
validate-e2e: ${{ steps.check.outputs.validate-e2e }}
2728
steps:
2829
- uses: actions/checkout@v4
2930

@@ -40,6 +41,9 @@ jobs:
4041
validate-frontend:
4142
- 'frontend/**'
4243
- '.github/workflows/validate.yml'
44+
validate-e2e:
45+
- 'test/e2e/**'
46+
- '.github/workflows/validate.yml'
4347
4448
validate-iac:
4549
needs: detect-changes
@@ -196,7 +200,7 @@ jobs:
196200
e2e-tests-browserstack:
197201
name: e2e-tests-browserstack
198202
needs: detect-changes
199-
if: needs.detect-changes.outputs.validate-frontend == 'true' || needs.detect-changes.outputs.validate-backend == 'true'
203+
if: needs.detect-changes.outputs.validate-frontend == 'true' || needs.detect-changes.outputs.validate-backend == 'true' || needs.detect-changes.outputs.validate-e2e == 'true'
200204
runs-on: ubuntu-latest
201205
environment: staging
202206
env:

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This project is deployed with Mozilla Accounts (known as fxa in the code.) Since
4343
To run tests in the backend, simply install the package in editing mode:
4444

4545
```bash
46-
cd backend && pip install -e .['test']
46+
cd backend && pip install -e .'[test]'
4747
```
4848

4949
After this you can run all of the tests with:

0 commit comments

Comments
 (0)