Loading .github/workflows/demo-job-summary.yml +22 Changes for .github/workflows/demo-job-summary.yml: 22 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -41,3 +41,25 @@ jobs: working-directory: .github/workflow-samples/groovy-dsl continue-on-error: true run: ./gradlew not-a-real-task pre-existing-gradle-home: runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v3 - name: Build distribution shell: bash run: | npm install npm run build - name: Pre-create Gradle User Home shell: bash run: | mkdir ~/.gradle mkdir ~/.gradle/caches touch ~/.gradle/caches/dummy.txt - name: Setup Gradle uses: ./ - name: Run build working-directory: .github/workflow-samples/groovy-dsl run: ./gradlew assemble src/cache-reporting.ts +2 −1 Changes for src/cache-reporting.ts: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ export class CacheListener { cacheReadOnly = false cacheWriteOnly = false cacheDisabled = false cacheDisabledReason = 'disabled' get fullyRestored(): boolean { return this.cacheEntries.every(x => !x.wasRequestedButNotRestored()) Loading @@ -17,7 +18,7 @@ export class CacheListener { get cacheStatus(): string { if (!cache.isFeatureAvailable()) return 'not available' if (this.cacheDisabled) return 'disabled' if (this.cacheDisabled) return this.cacheDisabledReason if (this.cacheWriteOnly) return 'write-only' if (this.cacheReadOnly) return 'read-only' return 'enabled' Loading src/caches.ts +2 Changes for src/caches.ts: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ export async function restore(gradleUserHome: string, cacheListener: CacheListen core.info('Gradle User Home already exists: will not restore from cache.') // Initialize pre-existing Gradle User Home. gradleStateCache.init() cacheListener.cacheDisabled = true cacheListener.cacheDisabledReason = 'disabled due to pre-existing Gradle User Home' return } Loading Loading
.github/workflows/demo-job-summary.yml +22 Changes for .github/workflows/demo-job-summary.yml: 22 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -41,3 +41,25 @@ jobs: working-directory: .github/workflow-samples/groovy-dsl continue-on-error: true run: ./gradlew not-a-real-task pre-existing-gradle-home: runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v3 - name: Build distribution shell: bash run: | npm install npm run build - name: Pre-create Gradle User Home shell: bash run: | mkdir ~/.gradle mkdir ~/.gradle/caches touch ~/.gradle/caches/dummy.txt - name: Setup Gradle uses: ./ - name: Run build working-directory: .github/workflow-samples/groovy-dsl run: ./gradlew assemble
src/cache-reporting.ts +2 −1 Changes for src/cache-reporting.ts: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ export class CacheListener { cacheReadOnly = false cacheWriteOnly = false cacheDisabled = false cacheDisabledReason = 'disabled' get fullyRestored(): boolean { return this.cacheEntries.every(x => !x.wasRequestedButNotRestored()) Loading @@ -17,7 +18,7 @@ export class CacheListener { get cacheStatus(): string { if (!cache.isFeatureAvailable()) return 'not available' if (this.cacheDisabled) return 'disabled' if (this.cacheDisabled) return this.cacheDisabledReason if (this.cacheWriteOnly) return 'write-only' if (this.cacheReadOnly) return 'read-only' return 'enabled' Loading
src/caches.ts +2 Changes for src/caches.ts: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ export async function restore(gradleUserHome: string, cacheListener: CacheListen core.info('Gradle User Home already exists: will not restore from cache.') // Initialize pre-existing Gradle User Home. gradleStateCache.init() cacheListener.cacheDisabled = true cacheListener.cacheDisabledReason = 'disabled due to pre-existing Gradle User Home' return } Loading