Commit Graph
100 Commits
Author SHA1 Message Date
Daz DeBoer 4a570433d8 Apply toolchain resolver plugin
This config is required to auto-provision toolchains with Gradle 8.0
2023-02-18 12:45:53 -07:00
Daz DeBoer 6df3b5baf5 Udate @actions/cache to 3.1.3 2023-02-14 09:31:23 -07:00
Daz DeBoer 96374ed57d Bump development dependencies 2023-02-14 09:21:28 -07:00
Daz DeBoer 59d37bdb61 Bump @actions/cache to 3.1.2 2023-02-06 15:06:03 -07:00
Daz DeBoerandGitHub 5abf330283 Merge pull request #516 from KENNYSOFT/build-scan-capture-guide
Add init scripts file name guide for build scan capturing
2023-02-06 14:10:53 -07:00
Daz DeBoerandGitHub 86ee4f1f60 Merge pull request #586 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.51.0
Bump @typescript-eslint/parser from 5.49.0 to 5.51.0
2023-02-06 14:08:33 -07:00
Daz DeBoerandGitHub e0391a3985 Merge pull request #528 from SonicGDX/patch-1
Update Link in README.md
2023-02-06 12:48:34 -07:00
Daz DeBoer 09af07ef76 Update readme for GHES 3.6 2023-02-06 12:45:48 -07:00
Daz DeBoer b47aad4750 Remove use of deprecated fs.rmdir
Using fs.rm({recursive: true}) instead.

Fixes #502
2023-02-06 12:40:03 -07:00
Daz DeBoer 50f436c485 Bump @actions/glob from 0.3.0 to 0.4.0 2023-02-06 12:31:46 -07:00
Daz DeBoer 32863c1a40 Update development dependencies 2023-02-06 12:29:45 -07:00
Daz DeBoer b744d1079a Update development dependencies 2023-01-19 18:10:04 -07:00
Daz DeBoer bff802913e Bump JUnit 2023-01-19 18:09:32 -07:00
Daz DeBoer cacfec068e Bump com.gradle.enterprise version 2023-01-19 16:26:25 -07:00
Daz DeBoerandGitHub cfc50b189a Merge pull request #527 from gradle/dd/fix-toolchain-cache
Fix caching of JDK toolchains for Gradle 7.6
2022-12-07 01:21:18 -07:00
Daz DeBoer 7e68f96bb3 Build outputs 2022-12-07 20:10:55 +13:00
Daz DeBoer e444647395 Save/restore extracted JDK instead of archive
Gradle 7.6 changes the way the downloaded JDKs are saved and extracted.
To workaround this difference, save and restore the extracted JDK instead.
2022-12-07 20:07:40 +13:00
Daz DeBoer 970a1475f1 Update development dependencies 2022-12-07 17:30:50 +13:00
Daz DeBoer d9106fb21d Use Gradle 7.6 in unit tests 2022-12-07 17:30:05 +13:00
Daz DeBoer 6f59210bbe Specify 'current' Gradle version for unit tests 2022-12-07 15:14:42 +13:00
Daz DeBoer a8cfaf666b Commit asdf .tool-versions 2022-12-07 13:57:00 +13:00
Daz DeBoer c82ad7fca4 Print node and NPM versions 2022-12-07 13:42:27 +13:00
Daz DeBoerandGitHub e70e4c5e6b Merge pull request #509 from gradle/dependabot/gradle/test/init-scripts/com.fasterxml.jackson.dataformat-jackson-dataformat-smile-2.14.1
Bump jackson-dataformat-smile from 2.14.0 to 2.14.1 in /test/init-scripts
2022-12-06 17:13:42 -07:00
Daz DeBoerandGitHub 2bc6cca4b8 Merge pull request #514 from gradle/wrapperbot/gradle-build-action-sample-kotlin-dsl/gradle-wrapper-7.6
Bump Gradle Wrapper from 7.5.1 to 7.6 in /.github/workflow-samples/kotlin-dsl
2022-12-06 17:10:48 -07:00
Daz DeBoerandGitHub 38bf8d67e6 Merge pull request #513 from gradle/wrapperbot/gradle-build-action-sample-java-toolchain/gradle-wrapper-7.6
Bump Gradle Wrapper from 7.5.1 to 7.6 in /.github/workflow-samples/java-toolchain
2022-12-06 17:10:28 -07:00
Daz DeBoerandGitHub 1c56ebc005 Merge pull request #512 from gradle/wrapperbot/gradle-build-action-sample-groovy-dsl/gradle-wrapper-7.6
Bump Gradle Wrapper from 7.5.1 to 7.6 in /.github/workflow-samples/groovy-dsl
2022-12-06 17:10:10 -07:00
Daz DeBoerandGitHub 084bf86b45 Merge pull request #485 from gradle/dependabot/npm_and_yarn/patch-package-6.5.0
Bump patch-package from 6.4.7 to 6.5.0
2022-11-02 18:50:37 -06:00
Daz DeBoerandGitHub a1c0141aa8 Merge pull request #486 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.42.0
Bump @typescript-eslint/parser from 5.41.0 to 5.42.0
2022-11-02 18:50:24 -06:00
Daz DeBoerandGitHub 19307c73ca Merge pull request #491 from gradle/dependabot/gradle/test/init-scripts/com.gradle.enterprise-3.11.3
Bump com.gradle.enterprise from 3.11.2 to 3.11.3 in /test/init-scripts
2022-11-02 18:50:09 -06:00
Daz DeBoerandGitHub 12054785f0 Merge pull request #490 from gradle/dependabot/gradle/dot-github/workflow-samples/no-wrapper-gradle-5/com.gradle.build-scan-3.11.3
Bump com.gradle.build-scan from 3.11.2 to 3.11.3 in /.github/workflow-samples/no-wrapper-gradle-5
2022-11-02 18:49:57 -06:00
Daz DeBoerandGitHub 5d67aff3ea Merge pull request #489 from gradle/dependabot/gradle/dot-github/workflow-samples/groovy-dsl/com.gradle.enterprise-3.11.3
Bump com.gradle.enterprise from 3.11.2 to 3.11.3 in /.github/workflow-samples/groovy-dsl
2022-11-02 18:49:43 -06:00
Daz DeBoerandGitHub c2abdfc02b Merge pull request #488 from gradle/dependabot/gradle/dot-github/workflow-samples/kotlin-dsl/com.gradle.enterprise-3.11.3
Bump com.gradle.enterprise from 3.11.2 to 3.11.3 in /.github/workflow-samples/kotlin-dsl
2022-11-02 18:49:23 -06:00
Daz DeBoerandGitHub 4d24cb28d8 Merge pull request #487 from gradle/dependabot/gradle/dot-github/workflow-samples/no-wrapper/com.gradle.enterprise-3.11.3
Bump com.gradle.enterprise from 3.11.2 to 3.11.3 in /.github/workflow-samples/no-wrapper
2022-11-02 18:49:11 -06:00
Daz DeBoerandGitHub 5df685c7b2 Merge pull request #481 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.41.0
Bump @typescript-eslint/parser from 5.40.1 to 5.41.0
2022-10-24 17:59:40 -06:00
Daz DeBoerandGitHub ee7cbb6fb4 Merge pull request #482 from gradle/dependabot/npm_and_yarn/eslint-8.26.0
Bump eslint from 8.25.0 to 8.26.0
2022-10-24 17:59:28 -06:00
Daz DeBoer 3fbe033aaa Retain 'set-output' command when GITHUB_OUTPUT is not set
This should maintain compatibility with older GitHub Enterprise versions
2022-10-22 08:20:16 -06:00
Daz DeBoerandGitHub 0842a550d1 Merge pull request #477 from gradle/dd/issue-461
Replace use of set-output command with env file
2022-10-20 14:09:48 -06:00
Daz DeBoer 3b959539de Remove use of deprecated 'set-output' command
- Use GITHUB_OUTPUT file in init script
- Write to a marker file in configuratiion-cache tests

Fixes #461
2022-10-20 14:09:12 -06:00
Daz DeBoerandGitHub c267ad1fcb Merge pull request #475 from gradle/dependabot/npm_and_yarn/actions/cache-3.0.6
Bump @actions/cache from 3.0.5 to 3.0.6
2022-10-20 09:14:58 -06:00
Daz DeBoer fab7664a6a Reset patch and build outputs 2022-10-20 07:28:45 -06:00
Daz DeBoerandGitHub a4b5212a9d Merge pull request #476 from gradle/dependabot/npm_and_yarn/eslint-plugin-jest-27.1.3
Bump eslint-plugin-jest from 27.1.2 to 27.1.3
2022-10-20 07:24:26 -06:00
Daz DeBoer c224a16628 Update node dependencies 2022-10-20 07:06:26 -06:00
Daz DeBoer ec783957f3 Update dev dependencies 2022-10-20 07:00:07 -06:00
Daz DeBoer 6b08b7d2b5 Update various Gradle dependency versions 2022-10-20 06:52:58 -06:00
Daz DeBoerandGitHub fd32ae9081 Merge pull request #445 from gradle/dd/no-duplicate-build-results
Avoid appending to existing build-results file
2022-09-29 08:28:05 -06:00
Daz DeBoerandGitHub 8545e5aed7 Document the process to merge Dependabot upgrades 2022-09-27 07:53:44 -06:00
Daz DeBoerandGitHub d92395703c Merge pull request #442 from gradle/dependabot/npm_and_yarn/actions/github-5.1.0
Bump @actions/github from 5.0.3 to 5.1.0
2022-09-27 07:52:55 -06:00
Daz DeBoer af916fa394 Build outputs 2022-09-27 07:47:20 -06:00
Daz DeBoer 394498f89f Avoid appending to existing build-results file
When configuration-cache is enabled, the invocationId may not be unique, which can result in
mulitple builds writing to the same file. Rather than failing the post-action, we simply
ignore any subsequent build results with the same ID.

Fixes #441
2022-09-26 11:03:26 -06:00
Daz DeBoer c295a4096e Patch @azure/logger to fix CodeQL warning
Logging of the AZURE_LOG_LEVEL env var value is considered a security issue,
since any environment variable value could contain sensitive information.
In this case, logging the value is not really necessary.
2022-09-22 10:28:11 -06:00
Daz DeBoer 74a56b60ce Disable source-map-register
The included sourcemap-register.js file is triggering a high priority
CodeQL warning, which can prevent users from adopting the action.
Removing this sourcemap support for now, until this can be fixed upstream.
2022-09-22 10:22:04 -06:00
Daz DeBoer aeb3e0fcd7 Avoid runnning unit tests to verify outputs 2022-09-22 07:58:37 -06:00
Daz DeBoerandGitHub dd8493d4f2 Merge pull request #436 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.38.0
Bump @typescript-eslint/parser from 5.37.0 to 5.38.0
2022-09-19 19:17:32 -06:00
Daz DeBoerandGitHub 1a66a38284 Enable GitHub dependency review 2022-09-13 14:53:55 -06:00
Daz DeBoerandGitHub bf471096d3 Merge pull request #432 from gradle/dd/dependency-upgrades
Update development dependencies
2022-09-13 09:13:54 -06:00
Daz DeBoer e8a7e1402f Update development dependencies
- Bump eslint from 8.23.0 to 8.23.1
- Bump typescript from 4.8.2 to 4.8.3
- Bump eslint-plugin-jest from 27.0.1 to 27.0.4
- Bump @typescript-eslint/parser from 5.36.2 to 5.37.0
2022-09-13 09:06:17 -06:00
Daz DeBoerandGitHub 0e3ce37aac Merge pull request #418 from gradle/jprinet/bump_up_to_spock-core-2.2-groovy-3.0
Bump up spock to 2.2-groovy-3.0
2022-09-13 08:29:11 -06:00
Daz DeBoerandGitHub 1761dcff13 Document gradle-home-cache-cleanup 2022-08-29 11:47:27 -06:00
Daz DeBoerandGitHub 356abb47e7 Merge pull request #414 from gradle/dd/cache-cleanup-windows
Implement cache-cleanup on Windows
2022-08-26 09:04:41 -06:00
Daz DeBoer fc9e8feb61 Build outputs 2022-08-26 09:04:11 -06:00
Daz DeBoer 0e4b100458 Use node to set file timestamps
Using `find` and `touch` will not work on windows, so this provides a
cross-platform mechanism.
2022-08-26 09:04:11 -06:00
Daz DeBoer 82bc72e1e7 Re-enable cache-cleanup on Windows 2022-08-26 09:03:58 -06:00
Daz DeBoer 8be955ee80 Update dev dependencies 2022-08-25 20:33:04 -06:00
Daz DeBoer 531cc21aeb Clarify comment 2022-08-25 20:26:16 -06:00
Daz DeBoer 164712adb1 Publish build scans for test-init-script build 2022-08-25 20:24:18 -06:00
Daz DeBoer 535b494721 Merge branch 'dd/cache-cleanup-test-fix'
Disable cache-cleanup on Windows
  Fix OSX by avoiding GNU-specific touch options
2022-08-25 20:21:59 -06:00
Daz DeBoer d6110ecac2 Build outputs 2022-08-25 20:06:13 -06:00
Daz DeBoer cc60593845 Disable cache-cleanup on Windows
It does not seem possible to use `find .. -exec ..` on Windows,
so a node-only solution may be required.
2022-08-25 20:06:13 -06:00
Daz DeBoer fb549a8417 Avoid using GNU-specific touch options
This makes cache-cleaner work correctly on MacOS.
2022-08-25 20:03:04 -06:00
Daz DeBoer c64fe31590 Fix tests that run on Windows
- Properly escape sysprop values
- Use bash for file existence checks
2022-08-25 20:02:31 -06:00
Daz DeBoer 6e56b59601 Fix test sysprop name to work on Windows 2022-08-24 08:19:52 -06:00
Daz DeBoer c77676cc69 Fix copy-paste error 2022-08-24 08:03:39 -06:00
Daz DeBoerandGitHub f39ea084f9 Merge pull request #410 from gradle/dependabot/npm_and_yarn/eslint-plugin-jest-26.8.7
Bump eslint-plugin-jest from 26.8.3 to 26.8.7
2022-08-22 19:35:31 -06:00
Daz DeBoerandGitHub 27a2f232f6 Merge pull request #411 from gradle/dependabot/npm_and_yarn/typescript-eslint/parser-5.34.0
Bump @typescript-eslint/parser from 5.33.1 to 5.34.0
2022-08-22 19:35:18 -06:00
Daz DeBoerandGitHub d427a379a8 Merge pull request #330 from gradle/dd/cache-cleanup
Add experimental support for cache-cleanup
2022-08-22 15:21:35 -06:00
Daz DeBoer ed5f3e6998 Run unit tests in separate job 2022-08-22 14:24:42 -06:00
Daz DeBoer 11c5fa73ac Build outputs 2022-08-22 14:10:53 -06:00
Daz DeBoer 3e3c80e9b4 Allow manual trigger of CI pipelines 2022-08-22 14:08:28 -06:00
Daz DeBoer 25ec178747 Add integration test for cache cleanup 2022-08-22 14:08:28 -06:00
Daz DeBoer 3cc0a8f6bb Add some explanatory comments 2022-08-22 14:08:28 -06:00
Daz DeBoer 915123c493 Add experimental support for cache-cleanup
- Includes basic implementation as `CacheCleaner`
- Integration test that checks unused files are removed:
  - Downloaded dependencies
  - Local build cache entries
  - Wrapper distributions
2022-08-22 14:08:28 -06:00
Daz DeBoer ef638c00fd Add 'build' goal for check + dist without test 2022-08-22 13:49:13 -06:00
Daz DeBoer 05257c7a5f Merge branch 'dd/cache-read-timeout'
* dd/cache-read-timeout:
  Build outputs
  Extract constant for Env Var name
  Remove custom option for cache-read-timeout
  Use actions/cache v3.0.4
2022-08-22 13:44:13 -06:00
Daz DeBoer c1a6f51e61 Fix paths that trigger init-script-check 2022-08-22 13:44:04 -06:00
Daz DeBoer 865815e1b6 Build outputs 2022-08-22 13:30:44 -06:00
Daz DeBoer eb22e65b5b Extract constant for Env Var name 2022-08-22 13:30:07 -06:00
Daz DeBoer 8a386f6915 Remove custom option for cache-read-timeout
Now that `@actions/cache` provides a env var override, we can remove our
custom configuration for setting the timeout on cache restore operations.

If the env var is NOT set, we continue to override the 60min default with 10mins.
2022-08-22 13:13:20 -06:00
Daz DeBoer 84bc83e639 Use actions/cache v3.0.4 2022-08-22 13:05:13 -06:00
Daz DeBoer cd579d970f Build outputs 2022-08-18 17:19:11 -06:00
Daz DeBoer f0ec7fb780 Remove 'followSymbolicLinks: false' flag for Globber
It appears that when restoring the Gradle User Home directory, certain empty
directories are being identified by Node as broken symlinks. This results in
`Error: ENOENT: No such file or directory` when attempting to resolve a Glob pattern.

By using the default behaviour of Globber (followSymbolicLinks && ignoreBrokenLinks),
these bad files no longer cause errors when saving the Gradle User Home to cache.

Fixes #408
2022-08-18 17:10:03 -06:00
Daz DeBoer bf2a15ee94 Fix cache-read-only for scheduled jobs
The fix for #383 introduced a bug that caused the post-action to fail when
attemping to resolve `cache-read-only` for scheduled jobs.
This has been fixed with an explicit (rather than implicit) check for 'event.repository != null'.

Fixes #409
2022-08-18 12:35:47 -06:00
Daz DeBoer c85b5e1be7 Run full-check when workflow-samples change 2022-08-17 14:53:21 -06:00
Daz DeBoer 330980897f Update to republished CCUD plugin version 2022-08-17 14:03:35 -06:00
Daz DeBoer 9411346324 Build outputs 2022-08-16 17:55:14 -06:00
Daz DeBoer 8f9b7c7d7f Add a configurable timeout for cache reads
Fixes #369
2022-08-16 17:37:41 -06:00
Daz DeBoer 8df5664474 Simplify patch 2022-08-16 17:30:58 -06:00
Daz DeBoer 25e9b4d3f6 Build outputs 2022-08-16 16:38:03 -06:00
Daz DeBoer b49446f8e1 Improved cache reporting
- Fix count of saved entries
- Catch and report errors on save and restore
- Correctly report entries that are never requested
2022-08-16 16:37:17 -06:00
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