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

Merge pull request #968 : Prepare for version 3.x

Contains all functionality planned for the initial 3.x release.

- Fixes #726 
- Fixes #946 
- Fixes #966 
- Fixes #996
parents 982da8e7 e6566cde
Loading
Loading
Loading
Loading
+1 −1
Changes for .github/workflows/ci-full-check.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ jobs:
      cache-key-prefix: ${{github.run_number}}-

  caching-config:
    uses: ./.github/workflows/integ-test-action-inputs-caching.yml
    uses: ./.github/workflows/integ-test-caching-config.yml
    with:
      cache-key-prefix: ${{github.run_number}}-

+7 −7
Changes for .github/workflows/ci-quick-check.yml: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ jobs:

  caching-config:
    needs: build-distribution
    uses: ./.github/workflows/integ-test-action-inputs-caching.yml
    uses: ./.github/workflows/integ-test-caching-config.yml
    with:
      runner-os: '["ubuntu-latest"]'
      download-dist: true
@@ -87,12 +87,12 @@ jobs:
      runner-os: '["ubuntu-latest"]'
      download-dist: true

  # restore-configuration-cache:
  #   needs: build-distribution
  #   uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
  #   with:
  #     runner-os: '["ubuntu-latest"]'
  #     download-dist: true
  restore-configuration-cache:
    needs: build-distribution
    uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
    with:
      runner-os: '["ubuntu-latest"]'
      download-dist: true

  restore-containerized-gradle-home:
    needs: build-distribution
+5 −3
Changes for .github/workflows/integ-test-caching-config.yml: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
name: Test action inputs for caching
name: Test caching configuration

on:
  workflow_call:
@@ -38,7 +38,8 @@ jobs:
            enterprise
        # Exclude build-cache from main cache entry
        gradle-home-cache-excludes: |
            caches/build-cache-1
            caches/build-cache-*
            caches/*/executionHistory
    - name: Build using Gradle wrapper
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test
@@ -63,7 +64,8 @@ jobs:
            caches
            enterprise
        gradle-home-cache-excludes: |
            caches/build-cache-1
            caches/build-cache-*
            caches/*/executionHistory
        cache-read-only: true
    - name: Execute Gradle build with --offline
      working-directory: .github/workflow-samples/groovy-dsl
+18 −6
Changes for .github/workflows/integ-test-restore-configuration-cache.yml: 18 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -34,9 +34,11 @@ jobs:
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Groovy build with configuration-cache enabled
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  verify-build-groovy:
    env:
@@ -55,10 +57,12 @@ jobs:
      uses: ./
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Groovy build with configuration-cache enabled
      id: execute
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache
    - name: Check that configuration-cache was used
      uses: actions/github-script@v7
      with:
@@ -88,9 +92,11 @@ jobs:
        GRADLE_BUILD_ACTION_SKIP_RESTORE: "generated-gradle-jars|wrapper-zips|java-toolchains|instrumented-jars|dependencies|kotlin-dsl"
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Check execute Gradle build with configuration cache enabled (but not restored)
      working-directory: .github/workflow-samples/groovy-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  seed-build-kotlin:
    env:
@@ -108,9 +114,11 @@ jobs:
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'help' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew help --configuration-cache
      run: gradle help --configuration-cache

  modify-build-kotlin:
    env:
@@ -129,9 +137,11 @@ jobs:
      uses: ./
      with:
        cache-read-only: false # For testing, allow writing cache entries on non-default branches
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'test' with configuration-cache enabled
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache

  # Test restore configuration-cache from the third build invocation
  verify-build-kotlin:
@@ -151,10 +161,12 @@ jobs:
      uses: ./
      with:
        cache-read-only: true
        cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
        gradle-version: release-nightly
    - name: Execute 'test' again with configuration-cache enabled
      id: execute
      working-directory: .github/workflow-samples/kotlin-dsl
      run: ./gradlew test --configuration-cache
      run: gradle test --configuration-cache
    - name: Check that configuration-cache was used
      uses: actions/github-script@v7
      with:
+1 −1
Changes for .tool-versions: 1 added line, 1 removed line.
Original line number Diff line number Diff line
# Configuration file for asdf version manager
nodejs 16.18.1
nodejs 20.10.0
gradle 8.5
Loading