mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 08:12:10 -05:00
Move workflow samples under .github
This commit is contained in:
parent
01def677bf
commit
aabb2db775
55 changed files with 402 additions and 402 deletions
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
|
@ -13,37 +13,37 @@ updates:
|
|||
ignore:
|
||||
- dependency-name: "@types/node"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/gradle-plugin"
|
||||
directory: ".github/workflows/samples/gradle-plugin"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/groovy-dsl"
|
||||
directory: ".github/workflows/samples/groovy-dsl"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/java-toolchain"
|
||||
directory: ".github/workflows/samples/java-toolchain"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/kotlin-dsl"
|
||||
directory: ".github/workflows/samples/kotlin-dsl"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/no-wrapper"
|
||||
directory: ".github/workflows/samples/no-wrapper"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "__tests__/samples/no-wrapper-gradle-5"
|
||||
directory: ".github/workflows/samples/no-wrapper-gradle-5"
|
||||
registries:
|
||||
- gradle-plugin-portal
|
||||
schedule:
|
||||
|
|
4
.github/workflows/failure-cases.yml
vendored
4
.github/workflows/failure-cases.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
uses: ./
|
||||
continue-on-error: true
|
||||
with:
|
||||
build-root-directory: __tests__/samples/no-wrapper
|
||||
build-root-directory: .github/workflows/samples/no-wrapper
|
||||
arguments: help
|
||||
|
||||
bad-configuration:
|
||||
|
@ -29,6 +29,6 @@ jobs:
|
|||
uses: ./
|
||||
continue-on-error: true
|
||||
with:
|
||||
build-root-directory: __tests__/samples/no-wrapper
|
||||
build-root-directory: .github/workflows/samples/no-wrapper
|
||||
arguments: help
|
||||
cache-disabled: yes
|
||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Invoke with multi-line arguments
|
||||
uses: ./
|
||||
with:
|
||||
build-root-directory: __tests__/samples/groovy-dsl
|
||||
build-root-directory: .github/workflows/samples/groovy-dsl
|
||||
arguments: |
|
||||
--configuration-cache
|
||||
--build-cache
|
||||
|
|
12
.github/workflows/integTest-caching-config.yml
vendored
12
.github/workflows/integTest-caching-config.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
gradle-home-cache-excludes: |
|
||||
caches/build-cache-1
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test
|
||||
|
||||
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
|
||||
|
@ -57,7 +57,7 @@ jobs:
|
|||
caches/build-cache-1
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build with --offline
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --offline
|
||||
|
||||
# Test that build scans are captured when caching is explicitly disabled
|
||||
|
@ -75,7 +75,7 @@ jobs:
|
|||
cache-disabled: true
|
||||
- name: Run Gradle build
|
||||
id: gradle
|
||||
working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
|
||||
- name: Check build scan url is captured
|
||||
if: ${{ !steps.gradle.outputs.build-scan-url }}
|
||||
|
@ -96,7 +96,7 @@ jobs:
|
|||
uses: ./
|
||||
- name: Run Gradle build
|
||||
id: gradle
|
||||
working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
|
||||
- name: Check build scan url is captured
|
||||
if: ${{ !steps.gradle.outputs.build-scan-url }}
|
||||
|
@ -121,7 +121,7 @@ jobs:
|
|||
with:
|
||||
cache-write-only: true
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test
|
||||
|
||||
verify-write-only-build:
|
||||
|
@ -140,6 +140,6 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build with --offline
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --offline
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Groovy build with configuration-cache enabled
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --configuration-cache
|
||||
|
||||
configuration-cache-groovy:
|
||||
|
@ -48,7 +48,7 @@ jobs:
|
|||
cache-read-only: true
|
||||
- name: Groovy build with configuration-cache enabled
|
||||
id: execute
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --configuration-cache
|
||||
- name: Check that configuration-cache was used
|
||||
if: ${{ steps.execute.outputs.task_configured == 'yes' }}
|
||||
|
@ -76,7 +76,7 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Check execute Gradle build with configuration cache enabled (but not restored)
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --configuration-cache
|
||||
|
||||
seed-build-kotlin:
|
||||
|
@ -92,7 +92,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Execute 'help' with configuration-cache enabled
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew help --configuration-cache
|
||||
|
||||
modify-build-kotlin:
|
||||
|
@ -109,7 +109,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Execute 'test' with configuration-cache enabled
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew test --configuration-cache
|
||||
|
||||
# Test restore configuration-cache from the third build invocation
|
||||
|
@ -130,7 +130,7 @@ jobs:
|
|||
cache-read-only: true
|
||||
- name: Execute 'test' again with configuration-cache enabled
|
||||
id: execute
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew test --configuration-cache
|
||||
- name: Check that configuration-cache was used
|
||||
if: ${{ steps.execute.outputs.task_configured == 'yes' }}
|
||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test
|
||||
|
||||
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build with --offline
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --offline
|
||||
|
||||
# Test that the gradle-user-home cache will cache and restore local build-cache
|
||||
|
@ -60,7 +60,7 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build and verify tasks from cache
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test -DverifyCachedBuild=true
|
||||
|
||||
# Check that the build can run when Gradle User Home is not fully restored
|
||||
|
@ -80,6 +80,6 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Check executee Gradle build
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: __tests__/samples/java-toolchain
|
||||
working-directory: .github/workflows/samples/java-toolchain
|
||||
run: ./gradlew test --info
|
||||
|
||||
# Test that the gradle-user-home cache will cache the toolchain, by running build with --offline
|
||||
|
@ -42,5 +42,5 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build with --offline
|
||||
working-directory: __tests__/samples/java-toolchain
|
||||
working-directory: .github/workflows/samples/java-toolchain
|
||||
run: ./gradlew test --info --offline
|
||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Exucute Gradle build
|
||||
uses: ./
|
||||
with:
|
||||
build-root-directory: __tests__/samples/groovy-dsl
|
||||
build-root-directory: .github/workflows/samples/groovy-dsl
|
||||
arguments: test
|
||||
|
||||
# Test that the gradle-user-home is restored
|
||||
|
@ -41,6 +41,6 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
cache-read-only: true
|
||||
build-root-directory: __tests__/samples/groovy-dsl
|
||||
build-root-directory: .github/workflows/samples/groovy-dsl
|
||||
arguments: test --offline -DverifyCachedBuild=true
|
||||
|
||||
|
|
10
.github/workflows/integTest-execution.yml
vendored
10
.github/workflows/integTest-execution.yml
vendored
|
@ -30,19 +30,19 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
gradle-version: 6.9
|
||||
build-root-directory: __tests__/samples/no-wrapper
|
||||
build-root-directory: .github/workflows/samples/no-wrapper
|
||||
arguments: help -DgradleVersionCheck=6.9
|
||||
- name: Test use Gradle version alias
|
||||
uses: ./
|
||||
with:
|
||||
gradle-version: release-candidate
|
||||
build-root-directory: __tests__/samples/no-wrapper
|
||||
build-root-directory: .github/workflows/samples/no-wrapper
|
||||
arguments: help
|
||||
- name: Test use defined Gradle executable
|
||||
uses: ./
|
||||
with:
|
||||
gradle-executable: __tests__/samples/groovy-dsl/gradlew${{ matrix.script-suffix }}
|
||||
build-root-directory: __tests__/samples/no-wrapper
|
||||
gradle-executable: .github/workflows/samples/groovy-dsl/gradlew${{ matrix.script-suffix }}
|
||||
build-root-directory: .github/workflows/samples/no-wrapper
|
||||
arguments: help -DgradleVersionCheck=7.4.2
|
||||
|
||||
gradle-versions:
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
id: gradle
|
||||
with:
|
||||
gradle-version: ${{matrix.gradle}}
|
||||
build-root-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
build-root-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
arguments: help -DgradleVersionCheck=${{matrix.gradle}}
|
||||
- name: Check build scan url
|
||||
if: ${{ !steps.gradle.outputs.build-scan-url }}
|
||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build using Gradle wrapper
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --info
|
||||
|
||||
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
|
||||
|
@ -45,7 +45,7 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build with --offline
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test --offline --info
|
||||
|
||||
# Test that the gradle-user-home cache will cache and restore local build-cache
|
||||
|
@ -63,5 +63,5 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
- name: Execute Gradle build and verify tasks from cache
|
||||
working-directory: __tests__/samples/groovy-dsl
|
||||
working-directory: .github/workflows/samples/groovy-dsl
|
||||
run: ./gradlew test -DverifyCachedBuild=true --info
|
||||
|
|
|
@ -31,21 +31,21 @@ jobs:
|
|||
with:
|
||||
gradle-version: 6.9
|
||||
- name: Test uses Gradle v6.9
|
||||
working-directory: __tests__/samples/no-wrapper
|
||||
working-directory: .github/workflows/samples/no-wrapper
|
||||
run: gradle help "-DgradleVersionCheck=6.9"
|
||||
- name: Setup Gradle with v7.1.1
|
||||
uses: ./
|
||||
with:
|
||||
gradle-version: 7.1.1
|
||||
- name: Test uses Gradle v7.1.1
|
||||
working-directory: __tests__/samples/no-wrapper
|
||||
working-directory: .github/workflows/samples/no-wrapper
|
||||
run: gradle help "-DgradleVersionCheck=7.1.1"
|
||||
- name: Setup Gradle with release-candidate
|
||||
uses: ./
|
||||
with:
|
||||
gradle-version: release-candidate
|
||||
- name: Test use release-candidate
|
||||
working-directory: __tests__/samples/no-wrapper
|
||||
working-directory: .github/workflows/samples/no-wrapper
|
||||
run: gradle help
|
||||
|
||||
gradle-versions:
|
||||
|
@ -68,7 +68,7 @@ jobs:
|
|||
gradle-version: ${{ matrix.gradle }}
|
||||
- name: Run Gradle build
|
||||
id: gradle
|
||||
working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }}
|
||||
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
|
||||
- name: Check build scan url
|
||||
if: ${{ !steps.gradle.outputs.build-scan-url }}
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build gradle-plugin project
|
||||
working-directory: __tests__/samples/gradle-plugin
|
||||
working-directory: .github/workflows/samples/gradle-plugin
|
||||
run: ./gradlew build
|
||||
|
||||
verify-build:
|
||||
|
@ -40,5 +40,5 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build gradle-plugin project
|
||||
working-directory: __tests__/samples/gradle-plugin
|
||||
working-directory: .github/workflows/samples/gradle-plugin
|
||||
run: ./gradlew build --offline
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build kotlin-dsl project
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew build
|
||||
|
||||
verify-build:
|
||||
|
@ -40,5 +40,5 @@ jobs:
|
|||
- name: Setup Gradle
|
||||
uses: ./
|
||||
- name: Build kotlin-dsl project
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew build --offline
|
||||
|
|
2
.github/workflows/pr-build-scan-comment.yml
vendored
2
.github/workflows/pr-build-scan-comment.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
|||
java-version: 11
|
||||
- uses: ./
|
||||
- id: gradle
|
||||
working-directory: __tests__/samples/kotlin-dsl
|
||||
working-directory: .github/workflows/samples/kotlin-dsl
|
||||
run: ./gradlew help
|
||||
- name: "Comment build scan url"
|
||||
uses: actions/github-script@v5
|
||||
|
|
Loading…
Reference in a new issue