Unverified Commit 00cdd4dc authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Explicitly allow cache-write for test invocations

The `gradle-build-action` test workflows need to write cache entries,
even when run on non-default branches. This change add explicit configuration
to set `cache-read-only: false` when cache writing is required.
parent b02f4f19
Loading
Loading
Loading
Loading
+1
Changes for .github/workflows/integ-test-action-inputs-caching.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ jobs:
    - name: Setup Gradle
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        # Add "enterprise" to main cache entry but omit "notifications"
        gradle-home-cache-includes: |
            caches
+1
Changes for .github/workflows/integ-test-execution-with-caching.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ jobs:
    - name: Execute Gradle build
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        build-root-directory: .github/workflow-samples/groovy-dsl
        arguments: test

+2
Changes for .github/workflows/integ-test-execution.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ jobs:
    - name: Test use defined Gradle version
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        gradle-version: 6.9
        build-root-directory: .github/workflow-samples/no-wrapper
        arguments: help -DgradleVersionCheck=6.9
@@ -72,6 +73,7 @@ jobs:
      uses: ./
      id: gradle
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        gradle-version: ${{matrix.gradle}}
        build-root-directory: .github/workflow-samples/no-wrapper${{ matrix.build-root-suffix }}
        arguments: help -DgradleVersionCheck=${{matrix.gradle}}
+2
Changes for .github/workflows/integ-test-provision-gradle-versions.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ jobs:
    - name: Setup Gradle with v6.9
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        gradle-version: 6.9
    - name: Test uses Gradle v6.9
      working-directory: .github/workflow-samples/no-wrapper
@@ -74,6 +75,7 @@ jobs:
    - name: Setup Gradle
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        gradle-version: ${{ matrix.gradle }}
    - name: Run Gradle build
      id: gradle
+6
Changes for .github/workflows/integ-test-restore-configuration-cache.yml: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ jobs:
      uses: ./.github/actions/download-dist
    - name: Setup Gradle
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
    - name: Groovy build with configuration-cache enabled
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
@@ -102,6 +104,8 @@ jobs:
      uses: ./.github/actions/download-dist
    - name: Setup Gradle
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
    - name: Execute 'help' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew help --configuration-cache
@@ -121,6 +125,8 @@ jobs:
      uses: ./.github/actions/download-dist
    - name: Setup Gradle
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
    - name: Execute 'test' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew test --configuration-cache
Loading