@@ -19,50 +19,50 @@ jobs:
1919 go-version-file : go.mod
2020
2121 - name : test
22- env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed for GitHub badge storer integration test
22+ # # env:
23+ # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for GitHub badge storer integration test
2424 run : make test
2525
26- - name : check test coverage
27- id : coverage
28- if : runner.os == 'Linux'
29- uses : vladopajic/go-test-coverage@v2
30- with :
31- config : ./.github/.testcoverage.yml
32- git-branch : badges
33- git-token : ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
26+ # - name: check test coverage
27+ # id: coverage
28+ # if: runner.os == 'Linux'
29+ # uses: vladopajic/go-test-coverage@v2
30+ # with:
31+ # config: ./.github/.testcoverage.yml
32+ # git-branch: badges
33+ # git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
3434
35- # Post coverage report as comment
36- - name : find pull request ID
37- if : runner.os == 'Linux'
38- run : |
39- PR_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
40- "https://api.github.com/repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ github.ref_name }}&state=open")
41- PR_ID=$(echo "$PR_DATA" | jq -r '.[0].number')
35+ # # Post coverage report as comment
36+ # - name: find pull request ID
37+ # if: runner.os == 'Linux'
38+ # run: |
39+ # PR_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
40+ # "https://api.github.com/repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ github.ref_name }}&state=open")
41+ # PR_ID=$(echo "$PR_DATA" | jq -r '.[0].number')
4242
43- if [ "$PR_ID" != "null" ]; then
44- echo "pull_request_id=$PR_ID" >> $GITHUB_ENV
45- else
46- echo "No open pull request found for this branch."
47- fi
48- - name : find if coverage report is already present
49- if : env.pull_request_id && runner.os == 'Linux'
50- uses : peter-evans/find-comment@v3
51- id : fc
52- with :
53- issue-number : ${{ env.pull_request_id }}
54- comment-author : ' github-actions[bot]'
55- body-includes : ' go-test-coverage report:'
56- - name : post coverage report
57- if : env.pull_request_id && runner.os == 'Linux'
58- uses : peter-evans/create-or-update-comment@v4
59- with :
60- token : ${{ secrets.GITHUB_TOKEN }}
61- issue-number : ${{ env.pull_request_id }}
62- comment-id : ${{ steps.fc.outputs.comment-id }}
63- body : |
64- go-test-coverage report:
65- ```
66- ${{ fromJSON(steps.coverage.outputs.report) }}
67- ```
68- edit-mode : replace
43+ # if [ "$PR_ID" != "null" ]; then
44+ # echo "pull_request_id=$PR_ID" >> $GITHUB_ENV
45+ # else
46+ # echo "No open pull request found for this branch."
47+ # fi
48+ # - name: find if coverage report is already present
49+ # if: env.pull_request_id && runner.os == 'Linux'
50+ # uses: peter-evans/find-comment@v3
51+ # id: fc
52+ # with:
53+ # issue-number: ${{ env.pull_request_id }}
54+ # comment-author: 'github-actions[bot]'
55+ # body-includes: 'go-test-coverage report:'
56+ # - name: post coverage report
57+ # if: env.pull_request_id && runner.os == 'Linux'
58+ # uses: peter-evans/create-or-update-comment@v4
59+ # with:
60+ # token: ${{ secrets.GITHUB_TOKEN }}
61+ # issue-number: ${{ env.pull_request_id }}
62+ # comment-id: ${{ steps.fc.outputs.comment-id }}
63+ # body: |
64+ # go-test-coverage report:
65+ # ```
66+ # ${{ fromJSON(steps.coverage.outputs.report) }}
67+ # ```
68+ # edit-mode: replace
0 commit comments