Skip to content

Fix: [ELI-731] - trying new role for regression tests #1017

Fix: [ELI-731] - trying new role for regression tests

Fix: [ELI-731] - trying new role for regression tests #1017

Workflow file for this run

name: Pull Request
on:
pull_request:
branches: [main]
pull_request_target:
branches: [main]
env:
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
jobs:
quality_checks:
if: >-
(github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
uses: ./.github/workflows/quality-checks.yml
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
pr_title_format_check:
if: >-
(github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
uses: ./.github/workflows/pr_title_check.yml
regression_tests:
if: >-
(github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
uses: ./.github/workflows/regression_tests.yml
with:
environment: "dev"
log_level: "INFO"
tags: "@regression"
id: "Run during opened pull request"
github_tag: ${{ github.event.pull_request.head.ref }}
secrets: inherit
error_handling_utils_changes:
if: >-
(github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.filter.outputs.error_handling_utils }}
steps:
- name: Detect relevant changes
id: filter
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d
with:
filters: |
error_handling_utils:
- 'tests/test_error_handling_utils.py'
- 'utils/data_helper.py'
- 'utils/dynamo_helper.py'
- 'utils/eligibility_api_client.py'
- 'tests/performance_tests/validate_inputs.py'
error_handling_utils_tests:
if: >-
needs.error_handling_utils_changes.outputs.should_run == 'true' &&
((github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository))
needs: error_handling_utils_changes
uses: ./.github/workflows/error_handling_utils_tests.yml