Daz DeBoer
cbebff71e9
Allow action to handle cache errors
...
This commit reverts the change in v3.0.0 of @actions/cache, that
causes cache errors to be logged and swallowed. By allowing these
errors to propogate, the action can take appropriate action and
provide useful error messages.
Fixes #407
2022-08-16 15:18:43 -06:00
Daz DeBoer
e4e8267f88
Don't set cache-read-only for scheduled workflows
...
For scheduled workflows, we don't know the default branch. In this case cannot determine if
the workflow is running on the default branch, and so cannot know when to enable `cache-read-only`.
Fixes #383
2022-08-16 11:08:42 -06:00
Daz DeBoer and GitHub
1e61c9a322
Merge pull request #405 from gradle/dependabot/gradle/dot-github/workflow-samples/kotlin-dsl/com.gradle.common-custom-user-data-gradle-plugin-1.8.0
...
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.7.2 to 1.8.0 in /.github/workflow-samples/kotlin-dsl
2022-08-15 19:25:44 -06:00
Daz DeBoer and GitHub
1a981dbaeb
Merge pull request #404 from gradle/dependabot/gradle/dot-github/workflow-samples/groovy-dsl/com.gradle.common-custom-user-data-gradle-plugin-1.8.0
...
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.7.2 to 1.8.0 in /.github/workflow-samples/groovy-dsl
2022-08-15 19:25:31 -06:00
Daz DeBoer
58e9059de1
Update development dependencies
2022-08-15 19:04:16 -06:00
Daz DeBoer
a62a2e6297
Build outputs
2022-08-15 19:02:19 -06:00
Daz DeBoer
daa635c20c
Bump @actions/cache from 3.0.1 to 3.0.3
...
Bumps [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache ) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/actions/toolkit/releases )
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/cache/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/cache )
---
updated-dependencies:
- dependency-name: "@actions/cache"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-15 18:59:25 -06:00
Daz DeBoer
8e9c25766c
Merge branch 'dd/dependency-upgrades'
...
Update patch for @actions/cache@v3.0.1
Bump @actions/cache from 3.0.0 to 3.0.1
Bump @actions/core from 1.9.0 to 1.9.1
2022-08-15 13:02:16 -06:00
Daz DeBoer
8ca744f938
Build outputs
2022-08-15 12:50:44 -06:00
Daz DeBoer
f1b090783c
Update patch for @actions/cache@v3.0.1
2022-08-15 12:49:40 -06:00
Daz DeBoer and GitHub
2aee3e724e
Merge pull request #385 from gradle/wrapperbot/gradle-build-action-sample-groovy-dsl/gradle-wrapper-7.5.1
...
Bump Gradle Wrapper from 7.5 to 7.5.1 in /.github/workflow-samples/groovy-dsl
2022-08-15 12:40:55 -06:00
Daz DeBoer
a1707fcc88
Avoid gradle-version-check when testing execution with latest
...
This should make merging Gradle update PRs easier.
2022-08-15 12:37:19 -06:00
Daz DeBoer and GitHub
86acd2a1fd
Update README.md
2022-07-25 17:45:58 -06:00
Daz DeBoer and GitHub
5c54c52839
Merge pull request #371 from gradle/dependabot/npm_and_yarn/jest-and-types/jest-28.1.3
...
Bump jest and @types/jest
2022-07-18 16:56:31 -06:00
Daz DeBoer and GitHub
444dfef7d6
Merge pull request #372 from gradle/dependabot/npm_and_yarn/ts-jest-28.0.7
...
Bump ts-jest from 28.0.5 to 28.0.7
2022-07-18 16:55:49 -06:00
Daz DeBoer and GitHub
957e1cc621
Merge pull request #373 from gradle/dependabot/npm_and_yarn/eslint-plugin-jest-26.6.0
...
Bump eslint-plugin-jest from 26.5.3 to 26.6.0
2022-07-18 16:55:36 -06:00
Daz DeBoer and GitHub
731c4e9bf4
Merge pull request #374 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.30.7
...
Bump @typescript-eslint/parser from 5.30.6 to 5.30.7
2022-07-18 16:55:23 -06:00
Daz DeBoer and GitHub
6700f3a162
Merge pull request #375 from gradle/dependabot/npm_and_yarn/eslint-8.20.0
...
Bump eslint from 8.19.0 to 8.20.0
2022-07-18 16:55:10 -06:00
Daz DeBoer and GitHub
cd3cedc781
Merge pull request #365 from gradle/wrapperbot/gradle-build-action-sample-groovy-dsl/gradle-wrapper-7.5
...
Bump Gradle Wrapper from 7.4.2 to 7.5 in /.github/workflow-samples/groovy-dsl
2022-07-16 15:48:19 -06:00
Daz DeBoer
e54bfe60d4
Update check for new Gradle version
2022-07-16 15:44:18 -06:00
Daz DeBoer
792a93a5e3
Do not write build-results file outside GitHub Actions context
...
The init-scripts added to Gradle User Home were assuming the presence of certain
GitHub Actions environment variables. With this fix, these init scripts behave
better without these env vars.
Fixes #350
2022-07-11 15:09:56 -06:00
Daz DeBoer and GitHub
86da5e6c4e
Merge pull request #349 from gradle/dependabot/npm_and_yarn/actions/cache-3.0.0
...
Bump @actions/cache from 2.0.6 to 3.0.0
2022-07-11 13:48:43 -06:00
Daz DeBoer
6daf446e27
Build outputs
2022-07-11 13:37:59 -06:00
Daz DeBoer
8a8f74b15c
Updated patch for actions/cache v3.0.0
2022-07-11 13:36:42 -06:00
Daz DeBoer and GitHub
15453523bd
Improve documentation of cache-read-only
2022-07-11 12:27:54 -06:00
Daz DeBoer and GitHub
bc41b8f654
Merge pull request #344 from gradle/dd/issue341
...
Only stop Gradle Daemons when saving Gradle User Home state
2022-06-23 09:32:56 -06:00
Daz DeBoer
32923891b5
Note daemon stopping behaviour in README
...
Text provided by @milis92
2022-06-22 16:52:00 -06:00
Daz DeBoer
fecf3693b5
Build outputs
2022-06-22 16:41:13 -06:00
Daz DeBoer
6965e8ed4c
Only stop Gradle Daemons when saving Gradle User Home state
...
Fixes #341
2022-06-22 16:41:03 -06:00
Daz DeBoer
884bca012f
Extracted some classes and refactored for clarity
2022-06-22 16:35:55 -06:00
Daz DeBoer
7f46dbd76f
Document support for GitHub Enterprise Server
2022-06-20 20:46:57 -06:00
Daz DeBoer and GitHub
ea4554d4d2
Merge pull request #340 from gradle/dd/github-enterprise-support
...
Improve support for GitHub Enterprise
2022-06-20 20:35:44 -06:00
Daz DeBoer
d8b58e3519
Build outputs
2022-06-20 20:18:17 -06:00
Daz DeBoer
4cb86e9712
Report when cache not available
2022-06-20 20:17:36 -06:00
Daz DeBoer
eaed5520c4
Write job summary to logs when feature not available
2022-06-20 20:10:34 -06:00
Daz DeBoer
ec939a8c10
Disable caching when feature not available
2022-06-20 18:11:11 -06:00
Daz DeBoer
6594e9d359
Update dev dependencies
2022-06-20 18:08:11 -06:00
Daz DeBoer
52e6e7d89f
Run verify outputs for dependabot PRs
2022-06-20 18:06:38 -06:00
Daz DeBoer and GitHub
2bf1894aa3
Merge pull request #334 from gradle/dependabot/npm_and_yarn/actions/core-1.9.0
...
Bump @actions/core from 1.8.2 to 1.9.0
2022-06-20 17:59:47 -06:00
Daz DeBoer
98376690f1
Update changelog post-release
2022-06-20 09:02:53 -06:00
Daz DeBoer and GitHub
67421db6bd
Merge pull request #333 from gradle/dd/build-scan-failure
...
Report failure to publish build scan in Job Summary
2022-06-19 10:51:24 -06:00
Daz DeBoer
ce3874fec9
Build outputs
2022-06-19 10:43:31 -06:00
Daz DeBoer
67f42d16a1
Write Job Summary HTML directly
...
This allows more control over the table layout, including centering of column content.
2022-06-19 10:42:34 -06:00
Daz DeBoer
56036f8577
Improve rendering of Job Summary
2022-06-19 09:40:27 -06:00
Daz DeBoer
1903bd4674
Add test for build-scan publish failure
2022-06-19 09:16:27 -06:00
Daz DeBoer
df4c1902a6
Extract common functionality for recording build results
2022-06-15 08:29:55 -06:00
Daz DeBoer
132237ba05
Capture failure to publish build scan in results
2022-06-15 08:08:41 -06:00
Daz DeBoer and GitHub
2335d51128
Add mandatory 'distribution' param for setup-java
2022-06-14 12:11:44 -06:00
Daz DeBoer and GitHub
2f7e5c0d4b
Merge pull request #332 from gradle/dependabot/npm_and_yarn/prettier-2.7.0
...
Bump prettier from 2.6.2 to 2.7.0
2022-06-14 11:54:58 -06:00
Daz DeBoer and GitHub
7d8a9a65e5
Reduce NPM dependabot updates to weekly
2022-06-14 11:30:15 -06:00
Daz DeBoer and GitHub
bc39e4abaa
Merge pull request #329 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.28.0
...
Bump @typescript-eslint/parser from 5.27.1 to 5.28.0
2022-06-14 07:47:39 -06:00
Daz DeBoer and GitHub
26cd1c9794
Merge pull request #328 from gradle/dependabot/npm_and_yarn/ts-jest-28.0.5
...
Bump ts-jest from 28.0.4 to 28.0.5
2022-06-14 07:47:27 -06:00
Daz DeBoer and GitHub
1ee84620f9
Merge pull request #327 from gradle/dd/test-reorg
...
Consolidate all tests under 'test' directory
2022-06-13 15:53:41 -06:00
Daz DeBoer
f1c1269910
Build outputs
2022-06-12 09:55:45 -06:00
Daz DeBoer
c09f41c4bd
Move Jest tests from '__tests__' to 'test/jest'
2022-06-11 09:39:59 -06:00
Daz DeBoer
829c7a236d
Removed unused test resources
2022-06-11 09:33:39 -06:00
Daz DeBoer
c1ed8b1925
Only run ci-init-script-check on relevant file changes
2022-06-11 09:33:39 -06:00
Daz DeBoer
3d091fa7a8
Move initscripts into src/resources/init-scripts
2022-06-11 09:33:38 -06:00
Daz DeBoer
a8d44c9749
Rename 'test/test-init-script' to 'test/init-scripts'
2022-06-11 09:32:50 -06:00
Daz DeBoer and GitHub
6125b490f2
Merge pull request #325 from gradle/dependabot/gradle/dot-github/workflow-samples/no-wrapper/com.gradle.enterprise-3.10.2
...
Bump com.gradle.enterprise from 3.10.1 to 3.10.2 in /.github/workflow-samples/no-wrapper
2022-06-09 22:30:09 -06:00
Daz DeBoer and GitHub
f75a77b009
Merge pull request #324 from gradle/dependabot/gradle/dot-github/workflow-samples/kotlin-dsl/com.gradle.enterprise-3.10.2
...
Bump com.gradle.enterprise from 3.10.1 to 3.10.2 in /.github/workflow-samples/kotlin-dsl
2022-06-09 22:29:58 -06:00
Daz DeBoer and GitHub
3510b43886
Merge pull request #322 from gradle/dependabot/gradle/dot-github/workflow-samples/no-wrapper-gradle-5/com.gradle.build-scan-3.10.2
...
Bump com.gradle.build-scan from 3.10.1 to 3.10.2 in /.github/workflow-samples/no-wrapper-gradle-5
2022-06-09 22:29:45 -06:00
Daz DeBoer and GitHub
61ba2ad220
Merge pull request #323 from gradle/dependabot/gradle/dot-github/workflow-samples/groovy-dsl/com.gradle.enterprise-3.10.2
...
Bump com.gradle.enterprise from 3.10.1 to 3.10.2 in /.github/workflow-samples/groovy-dsl
2022-06-09 22:29:35 -06:00
Daz DeBoer and GitHub
9355458b6c
Merge pull request #321 from gradle/dd/check-for-job-summary-support
...
Check that job summary support is available
2022-06-09 09:36:42 -06:00
Daz DeBoer and GitHub
4ec1021d58
Merge pull request #315 from gradle/dependabot/npm_and_yarn/jest-28.1.1
...
Bump jest from 28.1.0 to 28.1.1
2022-06-09 09:36:25 -06:00
Daz DeBoer
f3e4903860
Check that job summary support is available
...
Fixes #319
2022-06-09 09:26:30 -06:00
Daz DeBoer
ee54c1fd71
Bump @actions/cache from 2.0.5 to 2.0.6
2022-06-06 19:12:03 -06:00
Daz DeBoer
f33d84950e
Run verify-outputs on every push to 'main'
2022-06-06 19:04:28 -06:00
Daz DeBoer and GitHub
d20c5c0356
Merge pull request #314 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.27.1
...
Bump @typescript-eslint/parser from 5.27.0 to 5.27.1
2022-06-06 19:01:11 -06:00
Daz DeBoer and GitHub
c207cf448f
Merge pull request #312 from gradle/dependabot/npm_and_yarn/types/jest-28.1.1
...
Bump @types/jest from 28.1.0 to 28.1.1
2022-06-06 19:00:47 -06:00
Daz DeBoer and GitHub
a534572737
Merge pull request #311 from gradle/dependabot/npm_and_yarn/eslint-plugin-jest-26.5.3
...
Bump eslint-plugin-jest from 26.4.6 to 26.5.3
2022-06-06 19:00:34 -06:00
Daz DeBoer
33ed11e54c
Build outputs
2022-06-06 15:36:40 -06:00
Daz DeBoer
93c31ca3b5
Don't fail if the file-to-delete no longer exists
...
Fixes #308
2022-06-06 15:35:57 -06:00
Daz DeBoer
7a15005377
Avoid printing "reason unknown" for extract entries
...
This was happening when the main Gradle User Home entry was not saved due to
having an unchanged cache key.
Fixes #309
2022-06-06 15:07:13 -06:00
Daz DeBoer and GitHub
e88ed3e650
Update README for v2.2.0
2022-06-06 12:34:02 -06:00
Daz DeBoer
de51428ba5
Build outputs
2022-06-06 11:53:30 -06:00
Daz DeBoer
8096e65e0a
Better error reporting when file deletion fails
...
- Include file name in all logging
- Log inital attempts at debug to avoid noise
- Include output of 'jps -lm' when final attempt fails
2022-06-06 11:52:46 -06:00
Daz DeBoer
9cd70b5460
Report cache entry path for duplicate entry save
2022-06-06 08:48:03 -06:00
Daz DeBoer
63bcd47c1b
Allow Job Summary generation to be disabled
2022-06-06 07:13:23 -06:00
Daz DeBoer and GitHub
306a7e4bb2
Merge pull request #306 from gradle/dd/user-home
...
Use java to determine user.home dir
2022-06-05 22:18:36 -06:00
Daz DeBoer
c34d4a9731
Build outputs
2022-06-05 22:15:43 -06:00
Daz DeBoer
213bb63776
Use java to determine user.home dir
...
Although convenient, the os.homedir() function can return a different value
that the 'user.home' SystemProperty in Java. The latter is used to locate
the Gradle User Home directory.
By switching to use Java to determine the value for 'user.home', we can use
the same process as Gradle to determine Gradle User Home.
Fixes #207
2022-06-05 22:13:36 -06:00
Daz DeBoer
4ca4968624
Add test for action in containerized runner
2022-06-05 22:13:03 -06:00
Daz DeBoer
fd1882690a
Fix test to use custom Gradle User Home
2022-06-05 22:03:47 -06:00
Daz DeBoer
0b5047ec4d
Prevent duplicate JSON being written to build-results
2022-06-05 21:55:11 -06:00
Daz DeBoer and GitHub
a4a9a30e86
Merge pull request #305 from gradle/dd/stop-gradle-daemons
...
Allow daemons to run across workflow steps
2022-06-05 18:07:56 -06:00
Daz DeBoer
865c16699a
Build outputs
2022-06-05 10:25:29 -06:00
Daz DeBoer
52ebf2721a
Allow daemons to run across workflow steps
...
Now that we are stopping all Gradle daemons in the post-job action,
we can allow daemon processes to be re-used across steps in a workflow job.
Fixes #113
2022-06-05 09:20:54 -06:00
Daz DeBoer
aea6ddad5b
Attempt to stop all daemons on Job completion
2022-06-05 09:07:34 -06:00
Daz DeBoer
a7f880172e
Use a released version of 'gradle-build-action' for our CI job
2022-06-05 09:06:23 -06:00
Daz DeBoer
e644288a42
Use build-results file for root project dirs
...
Instead of using a separate mechanism and init script, reuse the information
captured in the build-results file.
2022-06-05 08:34:07 -06:00
Daz DeBoer
e234151ec9
Add more information to captured build results
...
- Root project dir: will allow us to replace project-root-capture init script
- Gradle home dir: will allow us to stop all started daemons
2022-06-05 08:18:25 -06:00
Daz DeBoer and GitHub
44e1837ae3
Merge pull request #304 from gradle/dd/test-init-scripts
...
Improve init scripts and add test coverage
The build-scan-capture init script will now capture results from builds that do not publish a build-scan, with and without the configuration-cache.
Fixes #292
2022-06-05 00:36:03 -06:00
Daz DeBoer
b400dc555d
Build outputs
2022-06-05 00:32:29 -06:00
Daz DeBoer
3f2d9cde44
Capture build results when GE plugin is applied but no build-scan is published
2022-06-05 00:32:29 -06:00
Daz DeBoer
6001bc9edc
Improve build badgee for builds without scan links
2022-06-05 00:32:00 -06:00
Daz DeBoer
5203a0b09d
Capture build results when config-cache is enabled
...
When enabled, the configuration-cache will cause the build to fail when a
`buildFinished` listener is added. Instead, use a BuildService to listen for task
failures and to write the results on build completion.
2022-06-05 00:29:42 -06:00
Daz DeBoer
500607bc35
Capture build-results without build-scan publication
...
The `buildScanPublished` is only called when a build scan is published by the build.
Support other invocations by adding a `buildFinished` listener.
2022-06-05 00:28:24 -06:00
Daz DeBoer
754892d4ae
Add workflow to run init-script tests
2022-06-05 00:27:36 -06:00
Daz DeBoer
ea24a0ad75
Add test coverage for build-result-capture init script
2022-06-05 00:27:36 -06:00