From b57d2e8aa1fbdaab29a25278d3672fa675d7cb9a Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Mon, 2 Oct 2023 10:31:53 +0200 Subject: [PATCH] Add test action --- .../test-maven-build-scan-publish.yml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test-maven-build-scan-publish.yml diff --git a/.github/workflows/test-maven-build-scan-publish.yml b/.github/workflows/test-maven-build-scan-publish.yml new file mode 100644 index 00000000..3dfcaa6e --- /dev/null +++ b/.github/workflows/test-maven-build-scan-publish.yml @@ -0,0 +1,38 @@ +# This workflow does not publish any build scans but allows to smoke test the composite action +name: TEST - Publish Maven Build Scan + +on: + pull_request: + +jobs: + publish-build-scan: + name: Verify Saved Build Scans + runs-on: ubuntu-latest + steps: + - name: Checkout current repository + uses: actions/checkout@v4 + - name: Checkout Maven sample project + uses: actions/checkout@v4 + with: + repository: 'gradle/gradle-enterprise-build-config-samples' + path: 'sample' + ref: 'main' + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Run Maven Build + working-directory: ./sample/common-gradle-enterprise-maven-configuration + run: mvn clean -B + - name: Save Maven Build Scan + uses: ./maven-build-scan/save + - name: Publish Maven Build Scans + uses: ./maven-build-scan/publish + with: + develocity-url: 'https://foo.bar' + pr-number: ${{ github.event.number }} + - name: Check publication log + run: | + ls -la ./maven-build-scan-publisher + ls -la ~/.m2/.gradle-enterprise/build-scan-data/