Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tests #222

Merged
merged 5 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading