From 207bb6bb24124dd2cab32cc1424bbbff8aa3318d Mon Sep 17 00:00:00 2001 From: Mandy Chessell Date: Mon, 10 Jun 2024 12:04:49 +0100 Subject: [PATCH] Readd v4 PR request to allow merge Signed-off-by: Mandy Chessell --- .github/workflows/pr-v4.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/pr-v4.yml diff --git a/.github/workflows/pr-v4.yml b/.github/workflows/pr-v4.yml new file mode 100644 index 00000000000..d2dc8c9da85 --- /dev/null +++ b/.github/workflows/pr-v4.yml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +--- +name: "Verify PR v4" + +on: + pull_request: + branches: [main, egeria-release-4*] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + name: "Verify PR v4" + if: startsWith(github.repository,'odpi/') + steps: + - uses: actions/checkout@v4.1.0 + - uses: gradle/wrapper-validation-action@v2 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: Build with Gradle + uses: gradle/gradle-build-action@v3 + with: + # Only cache for main build + cache-read-only: true + arguments: | + build + --scan + - name: Upload Test coverage report + uses: actions/upload-artifact@v4.3.1 + with: + name: Jacoco Coverage Report + path: build/reports/jacoco/codeCoverageReport + - name: Upload Log of any dependency failures + uses: actions/upload-artifact@v4.3.1 + with: + name: Dependency Analysis Report (on failure) + path: build/reports/dependency-analysis/build-health-report.txt + if-no-files-found: ignore