diff --git a/.github/workflows/comment_coverage.yml b/.github/workflows/comment_coverage.yml index be72c0efa..2285c8897 100644 --- a/.github/workflows/comment_coverage.yml +++ b/.github/workflows/comment_coverage.yml @@ -1,31 +1,31 @@ -name: Comment Coverage on PR +# name: Comment Coverage on PR -on: - workflow_call: - inputs: - issue-number: - required: true - type: number - artifact-url: - required: true - type: string +# on: +# workflow_call: +# inputs: +# issue-number: +# required: true +# type: number +# artifact-url: +# required: true +# type: string -# permissions: -# pull-requests: write -# issues: write +# # permissions: +# # pull-requests: write +# # issues: write -jobs: - comment-coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 +# jobs: +# comment-coverage: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout repository +# uses: actions/checkout@v2 - - name: Comment HTML report on PR - uses: peter-evans/create-or-update-comment@v1 - with: - issue-number: ${{ inputs.issue-number }} - body: | - Coverage report is available [here](${{inputs.artifact-url}}). Navigate to 'Artifacts' to download the HTML report. - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file +# - name: Comment HTML report on PR +# uses: peter-evans/create-or-update-comment@v1 +# with: +# issue-number: ${{ inputs.issue-number }} +# body: | +# Coverage report is available [here](${{inputs.artifact-url}}). Navigate to 'Artifacts' to download the HTML report. +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/coverage_stage.yml b/.github/workflows/coverage_stage.yml index 24d5736e9..68fd5e24a 100644 --- a/.github/workflows/coverage_stage.yml +++ b/.github/workflows/coverage_stage.yml @@ -45,30 +45,30 @@ jobs: run: | go tool cover -func total-coverage.txt - - name: Generate the HTML coverage report - run: | - go tool cover -html=total-coverage.txt -o=coverage.html + # - name: Generate the HTML coverage report + # run: | + # go tool cover -html=total-coverage.txt -o=coverage.html - - name: Upload the HTML coverage report - id: artifact-upload-step - uses: actions/upload-artifact@v4 - with: - name: coverage-report-html - path: coverage.html + # - name: Upload the HTML coverage report + # id: artifact-upload-step + # uses: actions/upload-artifact@v4 + # with: + # name: coverage-report-html + # path: coverage.html - - name: Comment Coverage on PR - if: success() - runs-on: ubuntu-latest - steps: - - name: Trigger Comment Workflow - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - await github.actions.workflowDispatch({ - workflow_file: '.github/workflows/comment_coverage.yml', - inputs: { - issue-number: ${{ github.event.client_payload.issue-number }}, - artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }} - } - }) \ No newline at end of file + # - name: Comment Coverage on PR + # if: success() + # runs-on: ubuntu-latest + # steps: + # - name: Trigger Comment Workflow + # uses: actions/github-script@v7 + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # script: | + # await github.actions.workflowDispatch({ + # workflow_file: '.github/workflows/comment_coverage.yml', + # inputs: { + # issue-number: ${{ github.event.client_payload.issue-number }}, + # artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }} + # } + # }) \ No newline at end of file