From 238a3da6f4f520158fa97141365ad0f5ce7e3fb1 Mon Sep 17 00:00:00 2001 From: daz Date: Fri, 19 Jul 2024 15:15:03 -0600 Subject: [PATCH] Remove tests for deprecated features --- .github/workflows/ci-integ-test.yml | 24 ----- .github/workflows/demo-failure-cases.yml | 62 ------------ .../workflows/integ-test-action-inputs.yml | 42 -------- .../integ-test-execution-with-caching.yml | 60 ----------- .github/workflows/integ-test-execution.yml | 99 ------------------- 5 files changed, 287 deletions(-) delete mode 100644 .github/workflows/demo-failure-cases.yml delete mode 100644 .github/workflows/integ-test-action-inputs.yml delete mode 100644 .github/workflows/integ-test-execution-with-caching.yml delete mode 100644 .github/workflows/integ-test-execution.yml diff --git a/.github/workflows/ci-integ-test.yml b/.github/workflows/ci-integ-test.yml index a9391df7..fb775e14 100644 --- a/.github/workflows/ci-integ-test.yml +++ b/.github/workflows/ci-integ-test.yml @@ -53,14 +53,6 @@ jobs: if: ${{ needs.determine-suite.outputs.suite != 'full' }} uses: ./.github/actions/build-dist - action-inputs: - needs: [determine-suite, build-distribution] - uses: ./.github/workflows/integ-test-action-inputs.yml - with: - runner-os: '${{ needs.determine-suite.outputs.runner-os }}' - cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' - skip-dist: ${{ needs.determine-suite.outputs.suite == 'full' }} - build-scan-publish: needs: [determine-suite, build-distribution] uses: ./.github/workflows/integ-test-build-scan-publish.yml @@ -118,22 +110,6 @@ jobs: cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' skip-dist: ${{ needs.determine-suite.outputs.suite == 'full' }} - execution-with-caching: - needs: [determine-suite, build-distribution] - uses: ./.github/workflows/integ-test-execution-with-caching.yml - with: - runner-os: '${{ needs.determine-suite.outputs.runner-os }}' - cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' - skip-dist: ${{ needs.determine-suite.outputs.suite == 'full' }} - - execution: - needs: [determine-suite, build-distribution] - uses: ./.github/workflows/integ-test-execution.yml - with: - runner-os: '${{ needs.determine-suite.outputs.runner-os }}' - cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' - skip-dist: ${{ needs.determine-suite.outputs.suite == 'full' }} - develocity-injection: if: ${{ ! github.event.pull_request.head.repo.fork }} needs: [determine-suite, build-distribution] diff --git a/.github/workflows/demo-failure-cases.yml b/.github/workflows/demo-failure-cases.yml deleted file mode 100644 index 14044494..00000000 --- a/.github/workflows/demo-failure-cases.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: demo-failure-cases - -on: - workflow_dispatch: - -jobs: - build-distribution: - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Build and upload distribution - uses: ./.github/actions/build-dist - - failing-build: - needs: build-distribution - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Test build failure - uses: ./setup-gradle - continue-on-error: true - with: - build-root-directory: .github/workflow-samples/kotlin-dsl - arguments: not-a-valid-task - - wrapper-missing: - needs: build-distribution - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Test wrapper missing - uses: ./setup-gradle - continue-on-error: true - with: - build-root-directory: .github/workflow-samples/no-wrapper - arguments: help - - bad-configuration: - needs: build-distribution - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Test bad config value - uses: ./setup-gradle - continue-on-error: true - with: - build-root-directory: .github/workflow-samples/no-wrapper - arguments: help - cache-disabled: yes diff --git a/.github/workflows/integ-test-action-inputs.yml b/.github/workflows/integ-test-action-inputs.yml deleted file mode 100644 index 46724704..00000000 --- a/.github/workflows/integ-test-action-inputs.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Test action inputs - -on: - workflow_call: - inputs: - cache-key-prefix: - type: string - runner-os: - type: string - default: '["ubuntu-latest", "windows-latest", "macos-latest"]' - skip-dist: - type: boolean - default: false - -env: - SKIP_DIST: ${{ inputs.skip-dist }} - GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: action-inputs-${{ inputs.cache-key-prefix }} - -jobs: - action-inputs: - strategy: - fail-fast: false - matrix: - os: ${{fromJSON(inputs.runner-os)}} - runs-on: ${{ matrix.os }} - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Invoke with multi-line arguments - uses: ./setup-gradle - with: - build-root-directory: .github/workflow-samples/groovy-dsl - arguments: | - --configuration-cache - --build-cache - -DsystemProperty=FOO - -PgradleProperty=BAR - test - jar \ No newline at end of file diff --git a/.github/workflows/integ-test-execution-with-caching.yml b/.github/workflows/integ-test-execution-with-caching.yml deleted file mode 100644 index aff83f7e..00000000 --- a/.github/workflows/integ-test-execution-with-caching.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Test execution with caching - -on: - workflow_call: - inputs: - cache-key-prefix: - type: string - runner-os: - type: string - default: '["ubuntu-latest", "windows-latest", "macos-latest"]' - skip-dist: - type: boolean - default: false - -env: - SKIP_DIST: ${{ inputs.skip-dist }} - GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: execution-with-caching-${{ inputs.cache-key-prefix }} - GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true - -jobs: - seed-build: - strategy: - fail-fast: false - matrix: - os: ${{fromJSON(inputs.runner-os)}} - runs-on: ${{ matrix.os }} - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Execute Gradle build - uses: ./setup-gradle - with: - cache-read-only: false # For testing, allow writing cache entries on non-default branches - build-root-directory: .github/workflow-samples/groovy-dsl - arguments: test - - # Test that the gradle-user-home is restored - verify-build: - needs: seed-build - strategy: - fail-fast: false - matrix: - os: ${{fromJSON(inputs.runner-os)}} - runs-on: ${{ matrix.os }} - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Execute Gradle build - uses: ./setup-gradle - with: - cache-read-only: true - build-root-directory: .github/workflow-samples/groovy-dsl - arguments: test --offline -DverifyCachedBuild=true - diff --git a/.github/workflows/integ-test-execution.yml b/.github/workflows/integ-test-execution.yml deleted file mode 100644 index 0eef4d6b..00000000 --- a/.github/workflows/integ-test-execution.yml +++ /dev/null @@ -1,99 +0,0 @@ -name: Test execution - -on: - workflow_call: - inputs: - cache-key-prefix: - type: string - runner-os: - type: string - default: '["ubuntu-latest", "windows-latest", "macos-latest"]' - skip-dist: - type: boolean - default: false - -env: - SKIP_DIST: ${{ inputs.skip-dist }} - GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: execution-${{ inputs.cache-key-prefix }} - -jobs: - # Tests for executing with different Gradle versions. - # Each build verifies that it is executed with the expected Gradle version. - gradle-execution: - strategy: - fail-fast: false - matrix: - os: ${{fromJSON(inputs.runner-os)}} - runs-on: ${{ matrix.os }} - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Test use defined Gradle version - uses: ./setup-gradle - 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 - - name: Test use Gradle version alias - uses: ./setup-gradle - with: - gradle-version: release-candidate - build-root-directory: .github/workflow-samples/no-wrapper - arguments: help - - name: Test with non-executable wrapper - uses: ./setup-gradle - with: - gradle-version: wrapper - build-root-directory: .github/workflow-samples/non-executable-wrapper - arguments: help - - gradle-versions: - strategy: - fail-fast: false - matrix: - gradle: [7.5.1, 6.9.2, 5.6.4, 4.10.3, 3.5.1] - os: ${{fromJSON(inputs.runner-os)}} - include: - - java-version: 11 - - gradle: 5.6.4 - build-root-suffix: -gradle-5 - - gradle: 4.10.3 - build-root-suffix: -gradle-4 - - gradle: 3.5.1 - build-root-suffix: -gradle-4 - java-version: 8 - exclude: - - os: macos-latest # Java 8 is not supported on macos-latest, so we cannot test Gradle 3.5.1 - gradle: 3.5.1 - runs-on: ${{ matrix.os }} - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Initialize integ-test - uses: ./.github/actions/init-integ-test - - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{ matrix.java-version }} - - name: Run Gradle build - uses: ./setup-gradle - 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}} - - name: Check Build Scan url - if: ${{ !steps.gradle.outputs.build-scan-url }} - uses: actions/github-script@v7 - with: - script: | - core.setFailed('No Build Scan detected') - -