Skip to content

Commit

Permalink
ci: Allow Action comments on fork PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
georgkrause committed Sep 30, 2024
1 parent 011067e commit 7baa50a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,3 @@ jobs:
name: junit-${{ matrix.python-version }}
path: junit/*

report:
runs-on: ubuntu-latest
needs: test
permissions:
pull-requests: write
steps:
- uses: actions/download-artifact@v4
- name: Publish Test Reports
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: junit-*/test-results-*.xml
- name: Create Coverage Report
uses: irongut/[email protected]
with:
filename: junit-*/coverage-*.xml
format: markdown
output: both
- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
path: code-coverage-results.md
31 changes: 31 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['Continous Integration']
types:
- completed
permissions:
contents: read
actions: read
checks: write
pull-requests: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- name: Publish Test Reports
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: junit-*/test-results-*.xml
- name: Create Coverage Report
uses: irongut/[email protected]
with:
filename: junit-*/coverage-*.xml
format: markdown
output: both
- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
path: code-coverage-results.md

0 comments on commit 7baa50a

Please sign in to comment.