Skip to content

Commit

Permalink
Merge pull request #78 from TeamSPoon/main
Browse files Browse the repository at this point in the history
Updated CI workflow to handle permissions for PRs with full write access
  • Loading branch information
TeamSPoon authored Aug 15, 2024
2 parents aed9441 + 1f9fd48 commit ba5883d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
- main

permissions:
contents: write
checks: write
contents: write # Grant write permissions for contents
checks: write # Grant write permissions for checks
pull-requests: write # Explicitly grant write permissions for pull requests

jobs:
generate-reports:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
- name: Convert JUnit XML to Matrix HTML Report
continue-on-error: true # extra: Continue even if this step fails
run: |
junit2html --report-matrix junit-matrix-report.html junit.xml
junit2html --report-matrix junit.xml junit-matrix-report.html
- name: Upload JUnit XML Report
continue-on-error: true # extra: Continue even if this step fails
Expand Down Expand Up @@ -78,7 +79,7 @@ jobs:
with:
name: 'JUnit Results'
path: 'junit.xml'
reporter: 'java-junit' # Correct reporter type for JUnit XML
reporter: 'java-junit'
fail-on-error: false # Do not fail the job if tests fail

- name: Download Previous JUnit Results
Expand All @@ -94,10 +95,7 @@ jobs:
- name: Compare JUnit Test Results with ReportGenerator
run: |
reportgenerator \
-reports:"previous-junit.xml;junit.xml" \
-targetdir:"./comparison-report" \
-reporttypes:"HtmlSummary;HtmlChart"
reportgenerator -reports:"previous-junit.xml;junit.xml" -targetdir:"./comparison-report" -reporttypes:"HtmlSummary;HtmlChart"
- name: Upload JUnit Comparison Report
continue-on-error: true # extra: Continue even if this step fails
Expand Down

0 comments on commit ba5883d

Please sign in to comment.