Unverified Commit 0eb59965 authored by Daz DeBoer's avatar Daz DeBoer Committed by GitHub
Browse files

Merge pull request #93 from gradle/dd/instrumented-jars-fix

Ensure all-or-nothing restore of cached instrumented-jars

Leaving the .lock and .receipt files lying around was causing issues when the actual jar files were not restored. Now the entire directory will either be missing, or completely restored.

Fixes #91
parents d1ab42cd fe55bf46
Loading
Loading
Loading
Loading
+16
Changes for .github/workflows/integTest-caching.yml: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -82,3 +82,19 @@ jobs:
        build-root-directory: __tests__/samples/groovy-dsl
        arguments: test --configuration-cache
        cache-read-only: true

  # Check that the build can run when no bundles are restored
  no-bundles-restored:
    needs: seed-build
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Execute Gradle build with no cache artifact bundles restored
      uses: ./
      with:
        build-root-directory: __tests__/samples/groovy-dsl
        arguments: test
        cache-artifact-bundles: '[]'
        cache-read-only: true
+10
Changes for action.yml: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -30,6 +30,16 @@ inputs:
    description: Used to uniquely identify the current job invocation. Defaults to the matrix values for this job; this should not be overridden by users.
    required: false
    default: ${{ toJSON(matrix) }}
  cache-artifact-bundles:
    description: Names and patterns of artifact bundles to cache separately. For internal use only.
    required: false
    default: |
        [
          ["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"],
          ["wrapper-zips", "wrapper/dists/*/*/*.zip"],
          ["dependency-jars", "caches/modules-*/files-*/**/*.jar"],
          ["instrumented-jars", "caches/jars-*/*"]
        ]

outputs:
  build-scan-url:
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading