Skip to content

Commit

Permalink
Allow PR's to succeed even if authored by non-collaborators (#428)
Browse files Browse the repository at this point in the history
### What's done:

 * This tries to work around dorny/test-reporter#168.
  • Loading branch information
0x6675636b796f75676974687562 authored Jul 19, 2022
1 parent a0e2a7e commit e087e26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]

# A possible workaround for <https://github.com/dorny/test-reporter/issues/168>.
permissions:
checks: write
contents: write
pull-requests: write
statuses: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand Down Expand Up @@ -63,6 +70,11 @@ jobs:
# Comma-separated values.
path: "**/build/test-results/*/TEST-*.xml"
reporter: java-junit
# Ignore the "Resource not accessible by integration" error when a PR
# originates from a non-collaborator. This is
# <https://github.com/dorny/test-reporter/issues/168> which may be
# potentially fixed with <https://github.com/dorny/test-reporter/pull/174>.
continue-on-error: true

- name: Upload test results
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e087e26

Please sign in to comment.