From 57e3c333c11abef21baf03a32b8da0611c57bf3f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 20 Oct 2023 08:51:50 -0400 Subject: [PATCH] Restore `Capture Test Results` for PR GHA * Renaming GHA workflow files for better context --- .github/workflows/{CI.yml => ci-snapshot.yml} | 4 ++-- .../workflows/{pr-build-workflow.yml => pr-build.yml} | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) rename .github/workflows/{CI.yml => ci-snapshot.yml} (95%) rename .github/workflows/{pr-build-workflow.yml => pr-build.yml} (67%) diff --git a/.github/workflows/CI.yml b/.github/workflows/ci-snapshot.yml similarity index 95% rename from .github/workflows/CI.yml rename to .github/workflows/ci-snapshot.yml index 742b3b3..647cb0f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/ci-snapshot.yml @@ -1,4 +1,4 @@ -name: CI +name: CI SNAPSHOT on: workflow_dispatch: @@ -15,7 +15,7 @@ jobs: build_snapshot: runs-on: ubuntu-latest if: github.repository_owner == 'spring-projects' - name: CI Build ${{ github.ref_name }} SNAPSHOT + name: CI Build SNAPSHOT for ${{ github.ref_name }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/pr-build-workflow.yml b/.github/workflows/pr-build.yml similarity index 67% rename from .github/workflows/pr-build-workflow.yml rename to .github/workflows/pr-build.yml index 4c91047..d17c6d8 100644 --- a/.github/workflows/pr-build-workflow.yml +++ b/.github/workflows/pr-build.yml @@ -1,4 +1,4 @@ -name: Pull Request build +name: Pull Request Build on: pull_request: @@ -28,3 +28,10 @@ jobs: gradle-build-scan-report: false arguments: check + - name: Capture Test Results + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-results + path: '*/build/reports/tests/**/*.*' + retention-days: 3