mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 02:26:19 +08:00
Add a very-limited ‘no-wrapper’ test Gradle build
Will use this for testing Gradle execution with different versions and mechanisms.
This commit is contained in:
parent
26b92e3f5c
commit
63fea55da4
14
.github/workflows/prod.yml
vendored
14
.github/workflows/prod.yml
vendored
@ -22,12 +22,18 @@ jobs:
|
|||||||
- name: Test custom wrapper location
|
- name: Test custom wrapper location
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
build-root-directory: __tests__/samples/basic
|
build-root-directory: __tests__/samples/no-wrapper
|
||||||
wrapper-directory: __tests__/samples/basic
|
wrapper-directory: __tests__/samples/basic
|
||||||
arguments: test
|
arguments: help
|
||||||
- name: Test use defined Gradle version
|
- name: Test use defined Gradle version
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
gradle-version: 6.9
|
||||||
|
build-root-directory: __tests__/samples/no-wrapper
|
||||||
|
arguments: help
|
||||||
|
- name: Test use Gradle version alias
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
gradle-version: rc
|
gradle-version: rc
|
||||||
build-root-directory: __tests__/samples/basic
|
build-root-directory: __tests__/samples/no-wrapper
|
||||||
arguments: test
|
arguments: help
|
||||||
|
6
__tests__/samples/no-wrapper/.gitattributes
vendored
Normal file
6
__tests__/samples/no-wrapper/.gitattributes
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# https://help.github.com/articles/dealing-with-line-endings/
|
||||||
|
#
|
||||||
|
# These are explicitly windows files and should use crlf
|
||||||
|
*.bat text eol=crlf
|
||||||
|
|
5
__tests__/samples/no-wrapper/.gitignore
vendored
Normal file
5
__tests__/samples/no-wrapper/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Ignore Gradle project-specific cache directory
|
||||||
|
.gradle
|
||||||
|
|
||||||
|
# Ignore Gradle build output directory
|
||||||
|
build
|
3
__tests__/samples/no-wrapper/settings.gradle
Normal file
3
__tests__/samples/no-wrapper/settings.gradle
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
rootProject.name = 'no-wrapper'
|
||||||
|
|
||||||
|
println "Using Gradle version: ${gradle.gradleVersion}"
|
Loading…
x
Reference in New Issue
Block a user