diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dae8d066..12114bbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,12 @@ on: paths-ignore: - '**.md' - 'docs/**' + push: + branches: + - master + paths-ignore: + - '**.md' + - 'docs/**' jobs: run-tests: @@ -19,6 +25,11 @@ jobs: - name: Run Automated Tests run: make test + + - name: Send Coverage Report to Coveralls + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: ./.output/cov-report/profile.cov - name: Notify To Slack If Failed uses: lazy-actions/slatify@v3.0.0 diff --git a/.github/workflows/coverage-badge.yml b/.github/workflows/coverage-badge.yml deleted file mode 100644 index d764765b..00000000 --- a/.github/workflows/coverage-badge.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: coverage-badge - -on: - push: - paths-ignore: - - 'Makefile' - - '**.md' - - 'docs/**' - branches: - - master - -jobs: - update-badge: - name: Update Coverage Badge - runs-on: ubuntu-latest - steps: - - name: Checkout Current Commit - uses: actions/checkout@v3 - - - name: Generate Coverage Report - run: make test - - - name: Send Coverage Report to Coveralls - uses: shogo82148/actions-goveralls@v1 - with: - path-to-profile: ./.output/cov-report/profile.cov - - - name: Notify To Slack If Failed - uses: lazy-actions/slatify@v3.0.0 - if: failure() - with: - type: ${{ job.status }} - job_name: "*[hex-monscape]* ${{ github.job }}" - mention: "here" - mention_if: "failure" - channel: "#solutions-team-ci-cd" - icon_emoji: ":haraaj:" - username: "ci/cd-reporter" - url: ${{ secrets.SOLUTIONS_TEAM_SLACK_WEBHOOK }} - commit: true - token: ${{ secrets.GITHUB_TOKEN }}