Skip to content

Commit 31fed37

Browse files
Merge pull request #222 from RedisInsight/fix/gh_actions
2 parents ff26f76 + c756077 commit 31fed37

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.github/workflows/tests-e2e-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Generate short list of the test files
4848
working-directory: ./tests/e2e
4949
run: |
50-
testFiles=$(find dist -type f -name '*.e2e.js' | sort | awk "NR % 1 == ${{ matrix.parallel }}")
50+
testFiles=$(find dist -type f -name '*.e2e.js' | sort | awk "NR % 4 == ${{ matrix.parallel }}")
5151
echo $testFiles
5252
5353
# Multi-Line value

.github/workflows/tests-frontend.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: ./.github/actions/install-all-build-libs
1717

1818
- name: Unit tests UI
19-
run: yarn test:cov --ci --silent
19+
run: yarn test:cov
2020

2121
- name: Publish Test Results
2222
uses: EnricoMi/publish-unit-test-result-action@v2

.github/workflows/tests.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,37 @@ 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
39+
steps:
40+
- uses: actions/checkout@v4
2541

2642
# E2E Docker
2743
build-linux:

0 commit comments

Comments
 (0)