Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-zalenski authored Dec 6, 2024
1 parent 142879e commit f17bd47
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,33 @@ on:
- 'e2e/**'

workflow_dispatch:
inputs:
group_tests:
description: Run group of tests
default: 'all'
type: choice
options:
- all
- without_e2e

workflow_call:
inputs:
group_tests:
description: Run group of tests
type: string
default: 'all'

jobs:
frontend-tests:
if: startsWith(github.ref_name, 'feature/')
if: inputs.group_tests == 'all' || inputs.group_tests == 'without_e2e' || startsWith(github.ref_name, 'feature/')
uses: ./.github/workflows/tests-frontend.yml
secrets: inherit

# E2E Approve
e2e-approve:
runs-on: ubuntu-latest
timeout-minutes: 60
if: startsWith(github.ref_name, 'e2e/')
if: inputs.group_tests == 'all' || startsWith(github.ref_name, 'e2e/')
environment: ${{ startsWith(github.ref_name, 'e2e/') && 'e2e-approve' || 'staging' }}
name: Approve E2E tests
steps:
Expand Down

0 comments on commit f17bd47

Please sign in to comment.