mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-14 03:32:22 +08:00
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.
This commit is contained in:
2
.github/workflows/integ-test-execution.yml
vendored
2
.github/workflows/integ-test-execution.yml
vendored
@@ -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}}
|
||||
|
Reference in New Issue
Block a user