File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,10 +48,11 @@ jobs:
4848 with :
4949 coverage : ${{ env.COVERAGE }}
5050
51- - name : Generate coverage badge
51+ - name : Generate coverage badge and summary
5252 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
5353 run : genbadge coverage -i coverage.xml -o coverage-badge.svg
5454
55+ <<<<<<< HEAD
5556 - name : Push badge to coverage-info branch
5657 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
5758 env :
7778
7879 git commit -m "Update coverage badge [skip ci]"
7980 git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" coverage-info
81+ =======
82+ - name : Push badge and summary to coverage-info branch
83+ if : ${{ env.COVERAGE == 'true' && github.event_name != 'pull_request' }}
84+ uses : peaceiris/actions-gh-pages@v4
85+ with :
86+ github_token : ${{ secrets.GITHUB_TOKEN }}
87+ publish_branch : coverage-info
88+ publish_dir : .
89+ include_files : coverage-badge.svg, coverage.xml
90+ commit_message : " Update coverage badge [skip ci]"
91+
92+ - name : Coverage diff on PR
93+ if : ${{ env.COVERAGE == 'true' && github.event_name == 'pull_request' }}
94+ run : echo "TODO"
95+ >>>>>>> cd008e2 (Outline steps I think are necessary for coverage diffs)
You can’t perform that action at this time.
0 commit comments