From a886b9dc2db66b2ee6cc160056ae77aff84ca581 Mon Sep 17 00:00:00 2001 From: nepo Date: Fri, 25 Sep 2026 16:34:33 +0200 Subject: [PATCH] Test PR comment --- .github/workflows/examples.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 08d92bf..76fd40a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -7,6 +7,10 @@ on: branches: [ main ] workflow_dispatch: +permissions: + contents: read + pull-requests: write + jobs: # This runs C tests using the Clar test framework @@ -26,8 +30,21 @@ jobs: uses: test-summary/action@v1 with: paths: c-clar/results/**/*.xml + output: test-summary.md if: always() - + - name: Upload test summary + uses: actions/upload-artifact@v3 + with: + name: test-summary + path: test-summary.md + if: always() + - name: Post failure summary to PR + if: always() + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr comment "${{ github.event.pull_request.number }}" \ + --body-file body.md # This runs .NET tests using the standard .NET test driver dotnet: name: .NET