From fd15defe5e900b15d24861a83bcb95b696cf260f Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Fri, 9 Aug 2024 14:37:30 +0200 Subject: [PATCH] Migrate generated artifacts between jobs --- .github/workflows/build-artifacts.yml | 9 ++++++++- .github/workflows/gradle-build.yml | 6 ++++++ .github/workflows/test-java-os-mix.yml | 6 ++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index e6a67f27..8bfcfed0 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -42,4 +42,11 @@ jobs: uses: gradle/actions/wrapper-validation@v4 - name: Execute Gradle build - run: ./gradlew clean check integrationTest --scan --stacktrace \ No newline at end of file + run: ./gradlew clean check integrationTest --scan --stacktrace + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: | + **/build diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 51bd2fb2..d66d4bbf 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -16,6 +16,12 @@ jobs: needs: build-artifacts runs-on: ubuntu-latest steps: + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: build-artifacts + path: . + - name: 'Publish Test Results' uses: EnricoMi/publish-unit-test-result-action/linux@v2 if: always() diff --git a/.github/workflows/test-java-os-mix.yml b/.github/workflows/test-java-os-mix.yml index c7a3dfea..81e30e0a 100644 --- a/.github/workflows/test-java-os-mix.yml +++ b/.github/workflows/test-java-os-mix.yml @@ -34,6 +34,12 @@ jobs: distribution: temurin java-version: ${{ matrix.java-version }} + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: build-artifacts + path: . + - name: Execute integration test (on Unixes) run: | cd integration-test/gradle-plugin