diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d38e81a..46be4a1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,7 +60,7 @@ jobs: permissions: contents: read with: - coveralls: true + coveralls: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} validate: uses: heathcliff26/ci/.github/workflows/golang-build.yaml@main diff --git a/.github/workflows/go-testcover-report.yaml b/.github/workflows/go-testcover-report.yaml index ea68b58..ae89e97 100644 --- a/.github/workflows/go-testcover-report.yaml +++ b/.github/workflows/go-testcover-report.yaml @@ -5,12 +5,16 @@ on: workflow_dispatch: push: branches: ["main"] - paths: - - "*.go" - - "**/*.go" jobs: generate-reports: uses: heathcliff26/ci/.github/workflows/golang-testcover-report.yaml@main secrets: inherit permissions: {} + + coveralls: + uses: heathcliff26/ci/.github/workflows/golang-unit-tests.yaml@main + permissions: + contents: read + with: + coveralls: true