From 9291ac6ca530a0966355aad9a9a5c1090f5d28cc Mon Sep 17 00:00:00 2001 From: daz Date: Thu, 29 Aug 2024 09:32:59 -0600 Subject: [PATCH] Add example of job summary with cache-read-only --- .github/workflows/demo-job-summary.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/demo-job-summary.yml b/.github/workflows/demo-job-summary.yml index 976403e..a679321 100644 --- a/.github/workflows/demo-job-summary.yml +++ b/.github/workflows/demo-job-summary.yml @@ -94,3 +94,20 @@ jobs: - name: Run build working-directory: .github/workflow-samples/groovy-dsl run: ./gradlew assemble + + cache-read-only: + needs: build-distribution + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Initialize integ-test + uses: ./.github/actions/init-integ-test + + - name: Setup Gradle + uses: ./setup-gradle + with: + cache-read-only: true + - name: Build kotlin-dsl project + working-directory: .github/workflow-samples/kotlin-dsl + run: ./gradlew assemble