From 7ae2ffdb3a6ac278427739182bb231cfa17ec1f9 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Fri, 2 Aug 2024 10:57:01 -0700 Subject: [PATCH] Adding triggers to pipelines (#17960) * Adding triggers * Fixing name of reports --- .github/workflows/daily-build-and-test.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/daily-build-and-test.yml b/.github/workflows/daily-build-and-test.yml index b9021a7977..41ef9494e3 100644 --- a/.github/workflows/daily-build-and-test.yml +++ b/.github/workflows/daily-build-and-test.yml @@ -1,7 +1,13 @@ -name: Daily CI/CD +name: CI on: schedule: - cron: '0 0 * * *' + push: + branches: + - main + pull_request: + branches: + - main workflow_dispatch: permissions: @@ -66,7 +72,7 @@ jobs: uses: dorny/test-reporter@v1 if: success() || failure() with: - name: 'Unit Test' + name: 'Unit Test Report' path: ./test-reports/**/*.xml reporter: jest-junit badge-title: 'unit-tests' @@ -93,7 +99,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: Coverage + name: Unit Test Coverage Report conclusion: ${{ steps.testcoverage.conclusion }} output: | {"summary":"${{ steps.testcoverage.summary }}"} @@ -133,10 +139,7 @@ jobs: uses: dorny/test-reporter@v1 if: success() || failure() with: - name: 'Smoke Test' + name: 'Smoke Test Report' path: ./test-reports/**/smoke-results.xml reporter: jest-junit - badge-title: 'smoke-tests' - - - + badge-title: 'smoke-tests' \ No newline at end of file