Skip to content

Commit bf82040

Browse files
committed
Outline steps I think are necessary for coverage diffs
1 parent 3e0ec94 commit bf82040

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci_workflow.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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:
@@ -77,3 +78,18 @@ jobs:
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)

0 commit comments

Comments
 (0)