Daz DeBoer
c61f5d87b4
Test java-toolchain cache
2021-12-17 21:10:31 -07:00
Daz DeBoer
c208b4c1f7
Test caching with gradle-plugin project
2021-12-17 20:54:04 -07:00
Daz DeBoer
253d6427fd
Extract cache-reporting into separate file
...
Cache reporting is self-contained enough that it deserves some separation.
2021-12-08 15:09:26 -07:00
Daz DeBoer
69aad1f173
Test config-cache support for multiple builds in one job
2021-12-08 15:09:26 -07:00
Daz DeBoer
472ac8a356
Report sizes of cache entries
...
Using the patched version of @actions/cache, we now report the total
size of cache entries restored/saved, as well as details of each one.
2021-10-30 13:45:39 -06:00
Daz DeBoer
75cec40e58
Rename 'report' classes to 'listener'
...
- `CachingReport` -> `CacheListener`
- `CacheEntryReport` -> `CacheEntryListener`
2021-10-30 12:15:00 -06:00
Daz DeBoer
c317ccac62
Refactor: extract cache-base out of cache-utils
2021-10-30 12:15:00 -06:00
Daz DeBoer
a74bb0fad6
Monitor cache saves and add basic caching report
...
- Restore `CachingReport` instance in 'post' action
- Record keys for any entries saved
- Report caching activity as JSON in post action
2021-10-30 12:14:59 -06:00
Daz DeBoer
9b7c81f8f6
Test execution with older Gradle versions
2021-09-29 13:34:05 -06:00
Daz DeBoer
b650771559
Cleanup samples
2021-09-29 13:23:25 -06:00
Daz DeBoer
17f624cb5b
Rename 'basic' sample to 'groovy-dsl'
2021-09-28 20:31:11 -06:00
Daz DeBoer
1b1a3c48ad
Publish scans from no-wrapper sample build
...
This allows more testing of build scan capture functionality
2021-09-28 00:04:50 -06:00
Daz DeBoer
5a5a5b4387
Normalize paths to Gradle User Home when calculating cache keys
...
Fixes #77
2021-09-27 21:52:03 -06:00
Daz DeBoer
b5a08466b4
Add kotlin-dsl sample to prod workflow tests
2021-09-12 10:30:49 -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
c01af7a6f6
Test coverage: verify correct Gradle version is being used
2021-08-27 12:53:02 -06:00
Daz DeBoer
d9cc0aeccf
Remove old caching code
2021-08-24 12:54:21 -06:00
Daz DeBoer
b3afdc78a7
Truncate Gradle args when constructing cache key ( #71 )
...
Cache keys have a hard limit of 512 characters, so we need to ensure that we don't generate a key longer than this.
- Remove excess whitespace
- Truncate to 400 characters
Fixes #70
2021-08-24 12:46:48 -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
Paul Merlin
863daedf86
Bump test build wrapper
2020-09-13 13:23:48 +02:00
Paul Merlin
26dd4cb9bb
Make file hashing more robust
2020-06-15 14:09:44 +02:00
Paul Merlin
95e20daa83
Automatic caching of dependencies
...
in a best effort manner by default
allowing to specify files to hash for computing the cache key
2020-06-15 13:04:42 +02:00
Paul Merlin
059f2e7791
Rename cache.ts to cache-wrapper.ts
2020-06-14 19:04:18 +02:00
Paul Merlin
9675f09de6
Compute wrapper cache key
2020-06-13 15:51:58 +02:00
Paul Merlin
a31de8476d
Format
2020-06-13 13:44:30 +02:00
Paul Merlin
2f66fb5679
Add basic test Gradle build
2020-06-13 12:47:27 +02:00
Paul Merlin
8ba9907b46
Initial commit
2019-09-20 23:06:59 +02:00