Daz DeBoer
e3ada7e5c2
Use multiline input parameters instead of JSON input
...
The `gradle-home-cache-includes` and `gradle-home-cache-excludes` parameters were initially implemented
as JSON string inputs. This makes these inputs non-idiomatic and easier to get wrong.
This change converts them to multi-line input parameters.
Fixes #106
2021-10-29 07:29:57 -06:00
Daz DeBoer
0eb881f067
Adapt workflows to renamed parameters
2021-10-27 16:07:24 -06:00
Daz DeBoer
cba1833dde
Run test builds on Ubuntu and Windows
...
- Remove MacOS since the agents are current flaky
- Add Windows to a few more test pipelines
2021-10-21 12:08:17 -06:00
Daz DeBoer
614d8770a4
Add test for cache configuration
2021-10-21 11:13:09 -06:00
Daz DeBoer
8b1f1a3817
Add test for execution when no bundles are restored
2021-10-15 13:29:09 -06:00
Daz DeBoer
d1ab42cddf
Document support for multi-line arguments
...
Fixes #88
2021-10-15 12:24:41 -06:00
Daz DeBoer
422726cec5
Add test for multi-line input arguments
2021-10-15 12:20:01 -06:00
Daz DeBoer
0cf00ed767
Fix test for release-candidate
...
Since this is an ever-changing version, this fix removes the `gradleVersionCheck` from the invocation.
2021-10-14 10:48:44 -06:00
Daz DeBoer
6ff498182a
Add checks for build scan links
2021-09-29 15:10:39 -06:00
Daz DeBoer
9b7c81f8f6
Test execution with older Gradle versions
2021-09-29 13:34:05 -06:00
Daz DeBoer
17f624cb5b
Rename 'basic' sample to 'groovy-dsl'
2021-09-28 20:31:11 -06:00
Daz DeBoer
5576baa56b
Merge pull request #83 from gradle/dd/v2
...
Adapt paths to differing Gradle User Home
2021-09-27 22:08:40 -06:00
Daz DeBoer
1026c62889
Only run failure-cases workflow on manual trigger
2021-09-27 22:05:23 -06:00
Daz DeBoer
e0d37eb073
Workflow to test with custom GRADLE_USER_HOME
2021-09-27 19:48:26 -06:00
Daz DeBoer
bdd89aa34f
Refactored workflows
...
- Improve workflow names
- Split execution testing from cache testing
2021-09-27 19:33:22 -06:00
Daz DeBoer
656ad4b5f2
Move continue-on-error into the step definition
...
Hopefully this will allow GitHub to ignore the failure.
2021-09-15 17:57:43 -06:00
Daz DeBoer
cca55d0890
Fail action execution on unhandled errors
...
Without this, the error logs contain an "UnhandledPromiseRejectionError"
but the action is reported as succeeding.
2021-09-14 07:48:06 -06:00
Daz DeBoer
3390540145
Simplify setting caches to disabled or read-only
2021-09-13 11:04:42 -06:00
Daz DeBoer
1c72a31463
Allow cache debug logging to be selectively enabled
...
- Move more messages out of main 'info' log
- Only log cache entry size when debugging
- Process cache entries sequentially when debugging
2021-09-13 10:52:09 -06:00
Daz DeBoer
d5cd9d86a1
Split the 'prod' workflow up into different isolated workflows
...
This is required to ensure that cache entries are namespaced correctly
for the integration tests.
2021-09-12 12:17:05 -06:00
Daz DeBoer
b5a08466b4
Add kotlin-dsl sample to prod workflow tests
2021-09-12 10:30:49 -06:00
Daz DeBoer
4d37378696
Consolidate cache-enabled options
2021-09-05 21:38:33 -06:00
Daz DeBoer
777a6fc967
Generate cache key based on Job invocation
...
Attempt to capture as much context as possible about the job run
to generate a unique cache key. Unfortunately much of the matrix context
is not available to the action implementation.
2021-09-05 21:35:17 -06:00
Daz DeBoer
436390bd4e
Test coverage: Verify configuration-cache is restored with project-dot-gradle
2021-08-27 12:53:02 -06:00
Daz DeBoer
a587e93714
Test coverage: Verify local build cache is restored with gradle-user-home
2021-08-27 12:53:02 -06:00
Daz DeBoer
75e00ee3d1
Test coverage: Verify dependency caching by running offline build
2021-08-27 12:53:02 -06:00
Daz DeBoer
c01af7a6f6
Test coverage: verify correct Gradle version is being used
2021-08-27 12:53:02 -06:00
Daz DeBoer
b85ac67c9a
Seed the cache key with workflow id in CI
...
This will eliminate cache entries from previous workflow runs, allowing
us to test cache functionality in isolation. If the `CACHE_KEY_SEED` environment
variable is not set, this will have no impact.
2021-08-27 12:52:01 -06:00
Daz DeBoer
fa0c026e07
Always execute Gradle with --no-daemon
...
The Gradle daemon is not useful for ephemeral builds, and the process
can hold file locks which interfere with cache entry generation.
In the case where multiple Gradle invocations occur in the same job,
we could provide a way for users to override this behaviour, taking care
of stopping any daemon process at the end of the job.
2021-08-27 12:21:46 -06:00
Daz DeBoer
986024f0b7
Adapt README and workflow for new caching
2021-08-26 17:25:50 -06:00
Daz DeBoer
d9cc0aeccf
Remove old caching code
2021-08-24 12:54:21 -06:00
Daz DeBoer
a148b21183
Improve prod workflow
...
- Use a separate job to test read-only cache
- Use dependency jobs to avoid cache race conditions
2021-08-22 14:42:01 -06:00
Daz DeBoer
a693ccda4b
Allow use of caches 'read-only'
...
To avoid evicting useful entries, some pipeline may benefit from using existing
cache entries without writing any changes back to the cache.
Fixes #62
2021-08-22 14:28:34 -06:00
Daz DeBoer
543cacb256
Allow manual trigger of prod workflow
2021-08-20 14:00:30 -06:00
Paul Merlin
41aebc770d
Fix typo in test workflow
...
Signed-off-by: Paul Merlin <paul@gradle.com>
2021-07-27 08:22:05 +02:00
Daz DeBoer
1f57b4dd2d
Re-add workflow jobs for dependencies and configuration caches
2021-07-26 15:45:00 -06:00
Daz DeBoer
b9684c0cf5
Prefer ‘release-candidate’ instead of ‘rc’
...
This makes the version alias match other places where we reference a release candidate version.
The 'rc' alias is still supported, but emits a deprecation warning.
2021-07-26 14:54:59 -06:00
Daz DeBoer
5423935c9b
Deprecate the 'wrapper-directory' input and recommend 'gradle-executable' instead
...
Use of a wrapper in a non-standard directory is uncommon, and is effectively handled
by referencing the `gradlew` script as the `gradle-executable`.
2021-07-26 14:54:59 -06:00
Daz DeBoer
15a8123fbc
Validate presense of gradle wrapper to provide better feedback
...
- Provide a more useful error message when no Gradle wrapper can be located,
and 'gradle-version' or 'gradle-executable' is not used.
- Add test for case where wrapper is missing.
This isn't really a "test" per-se, but this failing build invocation makes it
easy to verify the GitHub action behaviour when the build is misconfigured.
2021-07-08 08:01:44 -06:00
Daz DeBoer
f0c6ac01d3
Add test for gradle-executable
parameter
...
Use matrix to allow different script suffix on windows
2021-07-06 13:29:55 -06:00
Daz DeBoer
63fea55da4
Add a very-limited ‘no-wrapper’ test Gradle build
...
Will use this for testing Gradle execution with different versions and mechanisms.
2021-07-06 13:29:55 -06:00
Daz DeBoer
26b92e3f5c
Separate unit-test data from integ-test samples
...
- Upgraded `samples/basic` to use latest Gradle version.
2021-07-06 13:29:55 -06:00
Daz DeBoer
643092d2fc
Ensure that test invocations are targeted at a specific use-case
...
- Remove the 'gradle --stop' step from the prod workflow.
We either need to stop all instances started, or rely on GitHub to clean up processes on completion.
- Remove configuration-cache and dependencies-cache from basic tests. We will later need to add
tests invocations specific for these features.
2021-07-06 13:29:55 -06:00
Daz DeBoer
18c8a679dc
Look for gradle wrapper in build-root-directory by default
...
This removes the need to specify `wrapper-directory` when using a Gradle
project that is not located in the root of the workspace.
Fixes #44 .
2021-07-06 09:56:27 -06:00
Paul Merlin
c8c53f54bb
Let CI exercises using latest Gradle RC
2020-09-13 13:25:31 +02:00
Paul Merlin
053f389907
CI prod check workflow stops Gradle daemon at the end
...
to allow for dependency caching to work on windows
2020-06-15 20:08:27 +02:00
Paul Merlin
4f9b5202aa
Faster CI
2020-06-15 20:03:30 +02:00
Paul Merlin
aefd8348d2
Enable configuration cache on CI
2020-06-15 16:03:04 +02:00
Paul Merlin
f2de61db4e
Enable configuration cache on CI
2020-06-15 15:58:50 +02:00
Paul Merlin
806543fb3a
Enable dependencies cache on CI
2020-06-15 15:57:47 +02:00