mirror of
https://github.com/gradle/actions.git
synced 2025-08-24 02:41:29 +08:00
Remove tests for deprecated features
This commit is contained in:
parent
2041ce6ab1
commit
238a3da6f4
24
.github/workflows/ci-integ-test.yml
vendored
24
.github/workflows/ci-integ-test.yml
vendored
@ -53,14 +53,6 @@ jobs:
|
|||||||
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
|
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
|
||||||
uses: ./.github/actions/build-dist
|
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:
|
build-scan-publish:
|
||||||
needs: [determine-suite, build-distribution]
|
needs: [determine-suite, build-distribution]
|
||||||
uses: ./.github/workflows/integ-test-build-scan-publish.yml
|
uses: ./.github/workflows/integ-test-build-scan-publish.yml
|
||||||
@ -118,22 +110,6 @@ jobs:
|
|||||||
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
|
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
|
||||||
skip-dist: ${{ needs.determine-suite.outputs.suite == 'full' }}
|
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:
|
develocity-injection:
|
||||||
if: ${{ ! github.event.pull_request.head.repo.fork }}
|
if: ${{ ! github.event.pull_request.head.repo.fork }}
|
||||||
needs: [determine-suite, build-distribution]
|
needs: [determine-suite, build-distribution]
|
||||||
|
62
.github/workflows/demo-failure-cases.yml
vendored
62
.github/workflows/demo-failure-cases.yml
vendored
@ -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
|
|
42
.github/workflows/integ-test-action-inputs.yml
vendored
42
.github/workflows/integ-test-action-inputs.yml
vendored
@ -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
|
|
@ -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
|
|
||||||
|
|
99
.github/workflows/integ-test-execution.yml
vendored
99
.github/workflows/integ-test-execution.yml
vendored
@ -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')
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user