Skip to content

Commit

Permalink
report failed test cases to GA4 only for master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysGonchar committed Jul 11, 2023
1 parent 5bbe8dd commit ea1c44d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .circleci/template.yml
Expand Up @@ -304,11 +304,15 @@ commands:
if [ -n "${AWS_SECRET_ACCESS_KEY}" ]; then tools/circleci-upload-to-s3.sh; fi
report_failed_test_cases_to_ga4:
steps:
- run:
name: Report failed test cases
when: always
command: |
tools/gh-report-failing-testcases-to-ga4.sh
- when:
condition:
equal: [ master, << pipeline.git.branch >> ]
steps:
- run:
name: Report failed test cases to GA4
when: always
command: |
tools/gh-report-failing-testcases-to-ga4.sh
publish_github_comment:
steps:
- run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -84,7 +84,7 @@ jobs:
if: ${{ failure() }}
run: tools/gh-upload-to-s3.sh big_tests/ct_report
- name: upload big_tests results to GA4
if: ${{ always() }}
if: github.ref_name == 'master'
run: tools/gh-report-failing-testcases-to-ga4.sh

dynamic_domains_big_tests:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
if: ${{ failure() }}
run: tools/gh-upload-to-s3.sh big_tests/ct_report
- name: upload big_tests results to GA4
if: ${{ always() }}
if: github.ref_name == 'master'
run: tools/gh-report-failing-testcases-to-ga4.sh

coveralls_webhook:
Expand Down

0 comments on commit ea1c44d

Please sign in to comment.