diff --git a/.github/workflows/integTest-caching-config.yml b/.github/workflows/integTest-caching-config.yml index dfe8165a..fa56f602 100644 --- a/.github/workflows/integTest-caching-config.yml +++ b/.github/workflows/integTest-caching-config.yml @@ -22,6 +22,9 @@ jobs: - name: Setup Gradle uses: ./ with: + # Need to be able to write cache entries from non-default branches + cache-read-only: false + # Add "enterprise" to main cache entry but omit "notifications" gradle-home-cache-includes: | caches @@ -116,6 +119,7 @@ jobs: - name: Setup Gradle uses: ./ with: + cache-read-only: false cache-write-only: true - name: Build using Gradle wrapper working-directory: __tests__/samples/groovy-dsl diff --git a/.github/workflows/integTest-caching-configuration-cache.yml b/.github/workflows/integTest-caching-configuration-cache.yml index 61267080..a35ee2ed 100644 --- a/.github/workflows/integTest-caching-configuration-cache.yml +++ b/.github/workflows/integTest-caching-configuration-cache.yml @@ -24,6 +24,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Groovy build with configuration-cache enabled working-directory: __tests__/samples/groovy-dsl run: ./gradlew test --configuration-cache @@ -83,6 +85,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Execute 'help' with configuration-cache enabled working-directory: __tests__/samples/kotlin-dsl run: ./gradlew help --configuration-cache @@ -100,6 +104,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Execute 'test' with configuration-cache enabled working-directory: __tests__/samples/kotlin-dsl run: ./gradlew test --configuration-cache diff --git a/.github/workflows/integTest-caching-gradle-home.yml b/.github/workflows/integTest-caching-gradle-home.yml index 79f089d7..1e600e57 100644 --- a/.github/workflows/integTest-caching-gradle-home.yml +++ b/.github/workflows/integTest-caching-gradle-home.yml @@ -20,6 +20,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Build using Gradle wrapper working-directory: __tests__/samples/groovy-dsl run: ./gradlew test diff --git a/.github/workflows/integTest-caching-java-toolchain.yml b/.github/workflows/integTest-caching-java-toolchain.yml index aded20cb..d19e9b7b 100644 --- a/.github/workflows/integTest-caching-java-toolchain.yml +++ b/.github/workflows/integTest-caching-java-toolchain.yml @@ -20,6 +20,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Build using Gradle wrapper working-directory: __tests__/samples/java-toolchain run: ./gradlew test --info diff --git a/.github/workflows/integTest-execution-with-caching.yml b/.github/workflows/integTest-execution-with-caching.yml index 0c1dd838..a2a97412 100644 --- a/.github/workflows/integTest-execution-with-caching.yml +++ b/.github/workflows/integTest-execution-with-caching.yml @@ -20,7 +20,8 @@ jobs: uses: actions/checkout@v2 - name: Exucute Gradle build uses: ./ - with: + with: + cache-read-only: false build-root-directory: __tests__/samples/groovy-dsl arguments: test diff --git a/.github/workflows/integTest-gradle-user-home.yml b/.github/workflows/integTest-gradle-user-home.yml index 8623bf3f..2d4689c6 100644 --- a/.github/workflows/integTest-gradle-user-home.yml +++ b/.github/workflows/integTest-gradle-user-home.yml @@ -23,6 +23,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Build using Gradle wrapper working-directory: __tests__/samples/groovy-dsl run: ./gradlew test --info diff --git a/.github/workflows/integTest-sample-gradle-plugin.yml b/.github/workflows/integTest-sample-gradle-plugin.yml index 69e5ce26..bdb29821 100644 --- a/.github/workflows/integTest-sample-gradle-plugin.yml +++ b/.github/workflows/integTest-sample-gradle-plugin.yml @@ -21,6 +21,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Build gradle-plugin project working-directory: __tests__/samples/gradle-plugin run: ./gradlew build @@ -36,6 +38,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: true - name: Build gradle-plugin project working-directory: __tests__/samples/gradle-plugin run: ./gradlew build --offline diff --git a/.github/workflows/integTest-sample-kotlin-dsl.yml b/.github/workflows/integTest-sample-kotlin-dsl.yml index cfe3f23e..fcada2c1 100644 --- a/.github/workflows/integTest-sample-kotlin-dsl.yml +++ b/.github/workflows/integTest-sample-kotlin-dsl.yml @@ -21,6 +21,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: false - name: Build kotlin-dsl project working-directory: __tests__/samples/kotlin-dsl run: ./gradlew build @@ -36,6 +38,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Gradle uses: ./ + with: + cache-read-only: true - name: Build kotlin-dsl project working-directory: __tests__/samples/kotlin-dsl run: ./gradlew build --offline