From 82d00d41eaced3c5e6bb8a8983b1ccb022ff9f78 Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Mon, 18 Jul 2022 17:29:44 +0300 Subject: [PATCH] Allow PR's to succeed even if authored by non-collaborators ### What's done: * This tries to work around some issues of dorny/test-reporter. --- .github/workflows/build_and_test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d008d171cb..330224f782 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,3 +1,4 @@ +# vim:ai et ts=2 sts=2 sw=2: name: Build and test on: @@ -125,6 +126,14 @@ jobs: fail-fast: false matrix: os: [ windows-latest, macos-latest ] + + # A possible workaround for . + permissions: + checks: write + contents: write + pull-requests: write + statuses: write + steps: - uses: actions/checkout@v3 - name: Set up JDK 11 @@ -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 + # which may be + # potentially fixed with . + continue-on-error: true - name: Upload test results uses: actions/upload-artifact@v3