From 63fea55da4e25ad593188646571a1b09ef2e2519 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Thu, 24 Jun 2021 11:45:25 -0700 Subject: [PATCH] =?UTF-8?q?Add=20a=20very-limited=20=E2=80=98no-wrapper?= =?UTF-8?q?=E2=80=99=20test=20Gradle=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will use this for testing Gradle execution with different versions and mechanisms. --- .github/workflows/prod.yml | 14 ++++++++++---- __tests__/samples/no-wrapper/.gitattributes | 6 ++++++ __tests__/samples/no-wrapper/.gitignore | 5 +++++ __tests__/samples/no-wrapper/settings.gradle | 3 +++ 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 __tests__/samples/no-wrapper/.gitattributes create mode 100644 __tests__/samples/no-wrapper/.gitignore create mode 100644 __tests__/samples/no-wrapper/settings.gradle diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 2e6373e..9603bb2 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -22,12 +22,18 @@ jobs: - name: Test custom wrapper location uses: ./ with: - build-root-directory: __tests__/samples/basic + build-root-directory: __tests__/samples/no-wrapper wrapper-directory: __tests__/samples/basic - arguments: test + arguments: help - 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: ./ with: gradle-version: rc - build-root-directory: __tests__/samples/basic - arguments: test + build-root-directory: __tests__/samples/no-wrapper + arguments: help diff --git a/__tests__/samples/no-wrapper/.gitattributes b/__tests__/samples/no-wrapper/.gitattributes new file mode 100644 index 0000000..00a51af --- /dev/null +++ b/__tests__/samples/no-wrapper/.gitattributes @@ -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 + diff --git a/__tests__/samples/no-wrapper/.gitignore b/__tests__/samples/no-wrapper/.gitignore new file mode 100644 index 0000000..1b6985c --- /dev/null +++ b/__tests__/samples/no-wrapper/.gitignore @@ -0,0 +1,5 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/__tests__/samples/no-wrapper/settings.gradle b/__tests__/samples/no-wrapper/settings.gradle new file mode 100644 index 0000000..e18a8cf --- /dev/null +++ b/__tests__/samples/no-wrapper/settings.gradle @@ -0,0 +1,3 @@ +rootProject.name = 'no-wrapper' + +println "Using Gradle version: ${gradle.gradleVersion}" \ No newline at end of file