Skip to content

Commit

Permalink
Merge pull request #222 from RedisInsight/fix/gh_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-zalenski authored Dec 6, 2024
2 parents ff26f76 + c756077 commit 31fed37
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests-e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Generate short list of the test files
working-directory: ./tests/e2e
run: |
testFiles=$(find dist -type f -name '*.e2e.js' | sort | awk "NR % 1 == ${{ matrix.parallel }}")
testFiles=$(find dist -type f -name '*.e2e.js' | sort | awk "NR % 4 == ${{ matrix.parallel }}")
echo $testFiles
# Multi-Line value
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: ./.github/actions/install-all-build-libs

- name: Unit tests UI
run: yarn test:cov --ci --silent
run: yarn test:cov

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,37 @@ 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:
- uses: actions/checkout@v4

# E2E Docker
build-linux:
Expand Down

0 comments on commit 31fed37

Please sign in to comment.