Skip to content

Commit 3fef35f

Browse files
authored
DEV: Allow running only E2E tests for a particular branch (#280)
1 parent e448dce commit 3fef35f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
options:
1616
- all
1717
- without_e2e
18-
18+
- only_e2e
19+
1920
workflow_call:
2021
inputs:
2122
group_tests:
@@ -33,17 +34,15 @@ jobs:
3334
uses: ./.github/workflows/tests-frontend.yml
3435
secrets: inherit
3536

36-
# E2E Approve
3737
e2e-approve:
3838
runs-on: ubuntu-latest
3939
timeout-minutes: 60
40-
if: inputs.group_tests == 'all' || startsWith(github.ref_name, 'e2e/')
40+
if: inputs.group_tests == 'all' || inputs.group_tests == 'only_e2e' || startsWith(github.ref_name, 'e2e/')
4141
environment: ${{ startsWith(github.ref_name, 'e2e/') && 'e2e-approve' || 'staging' }}
4242
name: Approve E2E tests
4343
steps:
4444
- uses: actions/checkout@v4
4545

46-
# E2E Docker
4746
build-linux:
4847
uses: ./.github/workflows/pipeline-build-linux.yml
4948
needs: e2e-approve

0 commit comments

Comments
 (0)