Unverified Commit df38ec05 authored by daz's avatar daz
Browse files

Use 'release-nightly' for config-cache test

Config-cache save/restore is dependent on Gradle 8.6.
Use of the release-nightly is temporary until 8.6 is released.
parent b3f092e8
Loading
Loading
Loading
Loading
+12 −6
Changes for .github/workflows/integ-test-restore-configuration-cache.yml: 12 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -35,9 +35,10 @@ jobs:
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Groovy build with configuration-cache enabled
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  verify-build-groovy:
    env:
@@ -57,10 +58,11 @@ jobs:
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Groovy build with configuration-cache enabled
      id: execute
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache
    - name: Check that configuration-cache was used
      uses: actions/github-script@v7
      with:
@@ -91,9 +93,10 @@ jobs:
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Check execute Gradle build with configuration cache enabled (but not restored)
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  seed-build-kotlin:
    env:
@@ -112,9 +115,10 @@ jobs:
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'help' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew help --configuration-cache
      run: gradle help --configuration-cache

  modify-build-kotlin:
    env:
@@ -134,9 +138,10 @@ jobs:
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'test' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  # Test restore configuration-cache from the third build invocation
  verify-build-kotlin:
@@ -157,10 +162,11 @@ jobs:
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'test' again with configuration-cache enabled
      id: execute
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache
    - name: Check that configuration-cache was used
      uses: actions/github-script@v7
      with: