Skip to content

Commit

Permalink
Allow PR's to succeed even if authored by non-collaborators (#1459)
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 18, 2022
1 parent 7dd0261 commit 5f4311e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# vim:ai et ts=2 sts=2 sw=2:
name: Build and test

on:
Expand Down Expand Up @@ -125,6 +126,14 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest, macos-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 @@ -175,6 +184,11 @@ jobs:
# Comma-separated values.
path: "**/target/*-reports/TEST-*.xml, **/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 5f4311e

Please sign in to comment.