Skip to content

removing the size from the icon button as it follows the one set to t… #3329

removing the size from the icon button as it follows the one set to t…

removing the size from the icon button as it follows the one set to t… #3329

Workflow file for this run

name: ✅ Tests
on:
push:
branches:
- 'fe/**'
- 'be/**'
- 'fe-be/**'
- 'feature/**'
- 'bugfix/**'
- 'ric/**'
pull_request:
types: [labeled]
workflow_dispatch:
inputs:
redis_client:
description: Library to use for redis connection
default: 'ioredis'
type: choice
options:
- ioredis
- node-redis
short_rte_list:
description: Use short RTE list for IT
type: boolean
default: true
debug:
description: Enable SSH Debug (IT and E2E)
default: false
type: boolean
workflow_call:
inputs:
short_rte_list:
description: Use short rte list
type: boolean
default: true
pre_release:
description: Is pre-release
default: false
type: boolean
debug:
description: Enable SSH Debug
default: false
type: boolean
# Cancel a previous run workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.filter.outputs.frontend }}
backend: ${{ steps.filter.outputs.backend }}
desktop: ${{ steps.filter.outputs.desktop }}
steps:
- uses: actions/checkout@v4
- uses: dorny/[email protected]
id: filter
with:
base: ${{ github.ref }}
filters: |
frontend:
- 'redisinsight/ui/**'
backend:
- 'redisinsight/api/**'
desktop:
- 'redisinsight/desktop/**'
frontend-tests:
needs: changes
if: |
startsWith(github.ref_name, 'fe/') ||
startsWith(github.ref_name, 'fe-be/') ||
startsWith(github.ref_name, 'feature/') ||
startsWith(github.ref_name, 'bugfix/') ||
startsWith(github.ref_name, 'ric/') ||
contains(github.event.pull_request.labels.*.name, 'run-all-tests') ||
contains(github.event.pull_request.labels.*.name, 'run-frontend-tests')
uses: ./.github/workflows/tests-frontend.yml
secrets: inherit
frontend-tests-coverage:
needs: frontend-tests
uses: ./.github/workflows/code-coverage.yml
secrets: inherit
with:
resource_name: report-fe
type: unit
backend-tests:
needs: changes
if: |
startsWith(github.ref_name, 'be/') ||
startsWith(github.ref_name, 'fe-be/') ||
startsWith(github.ref_name, 'feature/') ||
startsWith(github.ref_name, 'bugfix/') ||
startsWith(github.ref_name, 'ric/') ||
contains(github.event.pull_request.labels.*.name, 'run-all-tests') ||
contains(github.event.pull_request.labels.*.name, 'run-backend-tests')
uses: ./.github/workflows/tests-backend.yml
secrets: inherit
backend-tests-coverage:
needs: backend-tests
uses: ./.github/workflows/code-coverage.yml
secrets: inherit
with:
resource_name: report-be
type: unit
integration-tests:
needs: changes
if: |
startsWith(github.ref_name, 'be/') ||
startsWith(github.ref_name, 'fe-be/') ||
startsWith(github.ref_name, 'feature/') ||
startsWith(github.ref_name, 'bugfix/') ||
startsWith(github.ref_name, 'ric/') ||
contains(github.event.pull_request.labels.*.name, 'run-all-tests') ||
contains(github.event.pull_request.labels.*.name, 'run-integration-tests')
uses: ./.github/workflows/tests-integration.yml
secrets: inherit
with:
short_rte_list: ${{ inputs.short_rte_list || true }}
redis_client: ${{ inputs.redis_client || '' }}
debug: ${{ inputs.debug || false }}
integration-tests-coverage:
needs: integration-tests
uses: ./.github/workflows/code-coverage.yml
secrets: inherit
with:
resource_name: integration-coverage
type: integration
clean:
uses: ./.github/workflows/clean-deployments.yml
if: always()
needs:
[
frontend-tests,
backend-tests,
integration-tests,
]
# Remove artifacts from github actions
remove-artifacts:
name: Remove artifacts
needs:
[
frontend-tests,
backend-tests,
integration-tests,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Remove all artifacts
uses: ./.github/actions/remove-artifacts