diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index 0430b93f..a5606fa0 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -1,11 +1,13 @@ # This is a basic workflow that is manually triggered -name: regression_test +name: GUIX Regression Test # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: - workflow_dispatch: + workflow_dispatch: + push: + branches: [ master ] pull_request: branches: [ master ] @@ -70,6 +72,7 @@ jobs: path: ./test/guix_test/cmake/coverage_report/default_build_coverage - name: Deploy GitHub Pages site + if: github.event_name == 'push' id: deployment uses: actions/deploy-pages@v1.2.9 @@ -91,6 +94,7 @@ jobs: cat code-coverage-summary.md >> $GITHUB_STEP_SUMMARY - name: Create CheckRun for Code Coverage + if: github.event_name == 'push' uses: LouisBrunner/checks-action@v1.6.2 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -101,8 +105,8 @@ jobs: output_text_description_file: code-coverage-summary.md - name: Add Code Coverage PR Comment + if: github.event_name == 'push' uses: marocchino/sticky-pull-request-comment@v2 - if: github.event_name == 'pull_request' with: append: true path: code-coverage-summary.md