Simplify setting caches to disabled or read-only

This commit is contained in:
Daz DeBoer
2021-09-12 14:26:38 -06:00
parent 1c72a31463
commit 3390540145
6 changed files with 24 additions and 39 deletions

View File

@@ -34,4 +34,4 @@ jobs:
with:
build-root-directory: __tests__/samples/no-wrapper
arguments: help
gradle-cache-enabled: no
cache-disabled: yes

View File

@@ -51,21 +51,21 @@ jobs:
gradle-version: 6.9
build-root-directory: __tests__/samples/no-wrapper
arguments: help -DgradleVersionCheck=6.9
gradle-cache-enabled: read-only
cache-read-only: true
- name: Test use Gradle version alias
uses: ./
with:
gradle-version: release-candidate
build-root-directory: __tests__/samples/no-wrapper
arguments: help -DgradleVersionCheck=7.2
gradle-cache-enabled: read-only
cache-read-only: true
- name: Test use defined Gradle executable
uses: ./
with:
gradle-executable: __tests__/samples/basic/gradlew${{ matrix.script-suffix }}
build-root-directory: __tests__/samples/no-wrapper
arguments: help -DgradleVersionCheck=7.1.1
gradle-cache-enabled: read-only
cache-read-only: true
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
dependencies-cache:
@@ -82,7 +82,7 @@ jobs:
with:
build-root-directory: __tests__/samples/basic
arguments: test --offline
gradle-cache-enabled: read-only
cache-read-only: true
# Test that the gradle-user-home cache will cache and restore local build-cache
build-cache:
@@ -99,7 +99,7 @@ jobs:
with:
build-root-directory: __tests__/samples/basic
arguments: test -DverifyCachedBuild=true
gradle-cache-enabled: read-only
cache-read-only: true
# Test that the project-dot-gradle cache will cache and restore configuration-cache
configuration-cache:
@@ -118,4 +118,4 @@ jobs:
with:
build-root-directory: __tests__/samples/basic
arguments: test --configuration-cache
gradle-cache-enabled: read-only
cache-read-only: true