From 35a26466a56036b48234b3943b810440b7de56ac Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Fri, 2 Aug 2024 13:06:23 -0500 Subject: [PATCH] Verify build scan published in Maven convention verification workflow --- .../convention-develocity-maven-extension-verification.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/convention-develocity-maven-extension-verification.yml b/.github/workflows/convention-develocity-maven-extension-verification.yml index 1e4458b34..4be93b8b6 100644 --- a/.github/workflows/convention-develocity-maven-extension-verification.yml +++ b/.github/workflows/convention-develocity-maven-extension-verification.yml @@ -54,6 +54,8 @@ jobs: java-version: '8' distribution: 'temurin' cache: maven + - name: Set up Maven + uses: gradle/develocity-actions/maven-setup@v1.1 - name: Download extension uses: actions/download-artifact@v4 with: @@ -66,7 +68,11 @@ jobs: env: DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} - name: Verify example build + id: build working-directory: convention-develocity-maven-extension/examples/maven_${{ matrix.versions.sample }} run: ./mvnw clean verify -Ddevelocity.url=https://ge.solutions-team.gradle.com env: DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} + - name: Verify Build Scan published + if: ${{ !steps.build.outputs.build-scan-url }} + run: echo "::error ::No Build Scan published"; exit 1