Skip to content

Commit f17bd47

Browse files
fix tests
1 parent 142879e commit f17bd47

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,33 @@ on:
77
- 'e2e/**'
88

99
workflow_dispatch:
10+
inputs:
11+
group_tests:
12+
description: Run group of tests
13+
default: 'all'
14+
type: choice
15+
options:
16+
- all
17+
- without_e2e
18+
1019
workflow_call:
20+
inputs:
21+
group_tests:
22+
description: Run group of tests
23+
type: string
24+
default: 'all'
1125

1226
jobs:
1327
frontend-tests:
14-
if: startsWith(github.ref_name, 'feature/')
28+
if: inputs.group_tests == 'all' || inputs.group_tests == 'without_e2e' || startsWith(github.ref_name, 'feature/')
1529
uses: ./.github/workflows/tests-frontend.yml
1630
secrets: inherit
1731

1832
# E2E Approve
1933
e2e-approve:
2034
runs-on: ubuntu-latest
2135
timeout-minutes: 60
22-
if: startsWith(github.ref_name, 'e2e/')
36+
if: inputs.group_tests == 'all' || startsWith(github.ref_name, 'e2e/')
2337
environment: ${{ startsWith(github.ref_name, 'e2e/') && 'e2e-approve' || 'staging' }}
2438
name: Approve E2E tests
2539
steps:

0 commit comments

Comments
 (0)