daz
a6050d4c14
Remove redundant method implementation
2024-03-21 21:52:16 -06:00
daz
ef7196c315
Ignore VScode config files
2024-03-21 21:52:16 -06:00
daz
60b8089f55
Avoid dirty state after unit-test execution
2024-03-12 22:15:37 +13:00
Daz DeBoer and GitHub
3fe876afb8
Merge pull request #66 from gradle/dependency-updates
...
Dependency updates
2024-03-11 21:44:18 -06:00
daz
f4c37be1e8
Build outputs
2024-03-12 16:23:08 +13:00
daz
68b69be9d4
Update patch for @actions/cache@3.2.4
2024-03-12 16:17:03 +13:00
daz
07f64e2534
Bump jackson-dataformat-smile to 2.16.2
2024-03-12 16:13:40 +13:00
daz
cee9fbd6e2
Bump CCUD plugin to 1.13
2024-03-12 16:13:40 +13:00
Daz DeBoer and GitHub
32f1033fd2
Fix dependabot config for relocated NPM sources
2024-03-11 21:06:42 -06:00
daz
7b589d9740
Apply plugin repository credentials for dependency graph plugin
2024-03-12 15:49:28 +13:00
Daz DeBoer and GitHub
f58a414c4f
Fix typo
2024-03-11 19:37:21 -06:00
daz
acc4561424
Remove unused changes.md
2024-02-13 13:51:03 -07:00
daz
e2b14c9dfc
Run full-check on action.yml change
2024-02-13 13:10:30 -07:00
daz
417ae3ccd7
Prepare for v3.1.0 release
2024-02-13 13:04:08 -07:00
Daz DeBoer and GitHub
8a945e8ba7
Document use of debug logging with dependency-submission
2024-02-13 09:38:01 -07:00
daz
b61dbd2545
Test no dependency-graph for failing build
2024-02-12 22:03:45 -07:00
daz
2262487821
Use v1.2.2 of dep-graph plugin
2024-02-12 21:41:04 -07:00
daz
aaf44989e3
Use v1.2.1 of dep-graph plugin
2024-02-11 18:22:33 -07:00
Daz DeBoer and GitHub
09bd32c78f
Improve documentation for debug logging
2024-02-11 18:18:43 -07:00
daz
4b284311c3
Disable cache debug logging for workflows
...
This logging can now be enabled on a case-by-case basis using
GitHub Actions debugging.
2024-02-11 18:00:40 -07:00
Daz DeBoer and GitHub
5e512f6e1d
Merge pull request #40 from gradle/dd/v3.1
...
Improvements in preparation for v3.1
2024-02-11 17:45:41 -07:00
daz
b6ea7d5b78
Build outputs
2024-02-11 17:35:43 -07:00
daz
9eb8242410
Improvements to debug logging
...
- Enable cache debugging when ACTIONS_STEP_DEBUG is on
- Replace some info messages with debug
2024-02-11 17:35:10 -07:00
daz
79414b4f92
Add link to workflow run from PR comment
...
Fixes #11
2024-02-11 16:53:03 -07:00
daz
e9c65b9fc0
Attempt to make build-scan links open in new tab
...
GitHub currently strips the target="_blank" from the rendered HTML,
but we'll leave this in since it's the desired behaviour.
2024-02-11 16:52:22 -07:00
daz
109be5d55b
Disable isolated projects in dependency-submission
...
The 'resolveAllDependencies' task is incompatible with project isolation.
Pending a fix to the plugin, disable this feature when running the
dependency-submission action.
Fixes #39
2024-02-11 15:56:13 -07:00
Daz DeBoer and GitHub
b776693a71
Fail nicely when dependency-submission is used after setup-gradle in the same Job ( #37 )
...
Previously, this would fail with a hard-to-diagnose error message.
Fixes #14
2024-02-08 23:16:54 -07:00
daz
2f23d645f2
Warn and make Gradle Wrapper script executable
...
Instead of failing the build, detect a non-executable wrapper file
and set the executable bit.
Fixes #17
2024-02-08 22:26:12 -07:00
daz
dfd22334ff
Use gradle properties to disable features instead of CLI args
...
These gradle properties will be silently ignored on older Gradle versions,
whereas unknown command-line args will cause Gradle to fail.
Fixes #15
2024-02-08 21:55:52 -07:00
daz
9c837ee543
Test dependency-submission with gradle versions
2024-02-08 21:55:52 -07:00
Daz DeBoer and GitHub
7fda81ffd5
Document auto-publish of build scans
2024-01-31 13:04:12 -07:00
Daz DeBoer and GitHub
e4ee7d7f94
Document process for resolving a vulnerability ( #8 )
2024-01-31 12:42:07 -07:00
Daz DeBoer and GitHub
a02bb79881
Introduce a top-level section for "resolving a vulnerability"
2024-01-31 12:23:08 -07:00
Daz DeBoer and GitHub
52d6180f95
Add 'finding dependency source' section to docs ( #7 )
2024-01-31 12:17:45 -07:00
daz
ec92e82947
Prepare for v3.0.0 release
2024-01-31 04:14:38 -07:00
daz
aff52e5be9
More docs improvements
2024-01-29 11:04:02 -07:00
daz
631b0d7b31
Move build scripts into sources
2024-01-29 10:48:53 -07:00
daz
354bf99f5f
Update docs
2024-01-29 10:46:26 -07:00
daz
0ac0f49dd2
Replace 'v3-beta' with 'v3' in docs
2024-01-29 10:46:26 -07:00
daz
0f26c9acd8
Limit artifact retention with dependency-submission
2024-01-29 10:46:26 -07:00
daz
11fb430abc
Update dependency-submission parameter for consistency
...
Instead of using 'dependency-graph-action' with some slightly better
values, we now use 'dependency-graph' as the parameter name with a subset
of the options available to 'setup-gradle'.
2024-01-29 10:46:26 -07:00
daz
b2288963e8
Use sub-directory for 'setup-gradle' dist
...
To prepare for converting the 'dependency-submission' action into Typescript,
we move the 'setup-gradle' entry points and outputs into a sub-directory.
2024-01-29 09:16:58 -07:00
daz
a97b588d8e
Bump to use v1.2.0 of the dep-graph plugin
2024-01-28 14:15:00 -07:00
daz
58d5bdcbe5
Allow additional arguments for resolve-all-dependencies
...
At times, additional CLI args may be required to invoke Gradle.
Add a parameter to provide these args.
2024-01-28 14:07:13 -07:00
daz
177cef6d02
Provide an override for the dependency-graph plugin version
2024-01-28 14:03:37 -07:00
daz
3247582571
Make it easy to publish build scans from 'dependency-submission'
2024-01-28 14:03:37 -07:00
daz
bdb2b520ea
Remove unnecessary workflows
2024-01-28 10:13:13 -07:00
Daz DeBoer and GitHub
5b6457b09b
Merge pull request #4 from gradle/dependency-updates
...
Bump DV plugin version to 3.16.2
2024-01-26 21:56:59 +01:00
daz
959c7a62f4
Build outputs
2024-01-26 13:21:12 -07:00
daz
ad22ba2fb7
Add scripts for build and test
2024-01-26 13:20:50 -07:00
daz
e833c3f088
Bump DV plugin version to 3.16.2
2024-01-26 12:58:26 -07:00
Daz DeBoer and GitHub
4a9297eb22
Fix name in action.yml
2024-01-26 12:47:02 -07:00
Daz DeBoer and GitHub
b6816cf21e
Minor update to setup-gradle README
2024-01-26 09:27:29 -07:00
daz
f218f2e104
Prefer 'setup-gradle' to 'gradle-build-action'
2024-01-25 12:46:51 -07:00
daz
bd134735f1
Attempt to use setup-gradle from dependency-submission
2024-01-25 12:45:33 -07:00
daz
3c5c811777
Build outputs
2024-01-25 12:36:54 -07:00
daz
a628cf9f2e
Replace occurrances of gradle-build-action
...
- Mostly with `setup-gradle`
- Some with `gradle-actions`
2024-01-25 12:36:53 -07:00
daz
930d449ff7
Merge in gradle-build-action as setup-gradle
...
This brings the entire codebase and history of `gradle/gradle-build-action` into
the `gradle/actions` repository, after some modifications to make it easier to
merge.
This will permit the new `gradle/actions/setup-gradle` coordinates to carry on
where `gradle/gradle-build-action` leaves off.
- All NPM sources have been moved into a 'sources' directory
- The main action.yml and README are not located at `setup-gradle`
2024-01-25 12:00:10 -07:00
daz
2e7b28666d
Move top-level action to 'setup-gradle'
2024-01-25 11:53:44 -07:00
daz
d23129d217
Build outputs
2024-01-25 11:53:44 -07:00
daz
151423cc90
Verify outputs on gradle-build-action branch
2024-01-25 11:53:44 -07:00
daz
22e5c984e7
Update workflows for move to 'sources'
2024-01-25 11:53:44 -07:00
daz
5e522253a6
Combine all sources into a sub-directory
2024-01-25 11:53:44 -07:00
daz
a8e3e5e2b4
Apply dependency version updates
...
- NPM dependencies
- github-actions dependencies
2024-01-25 10:03:45 -07:00
daz
2be01ca1c6
Build outputs
2024-01-25 10:00:43 -07:00
daz
bd6d0a74d4
Configure explicit java version for config-cache test
...
The default JDK on some runners can have minor differences, resulting
in configuration-cache misses. Setting the Java version explicitly should
ensure consistency.
2024-01-25 09:21:52 -07:00
Daz DeBoer and GitHub
1b6cac1f97
Make it easy to publish to scans.gradle.com ( #1045 )
2024-01-25 16:58:51 +01:00
daz
90d7c1a069
Apply TOS agreement even if plugin is already applied
...
Fixes #1044
2024-01-25 08:56:13 -07:00
daz
4062866f05
Document build scan publishing
2024-01-25 08:56:13 -07:00
daz
83a95864e5
Build outputs
2024-01-25 08:56:13 -07:00
daz
60c43cb563
Make it easy to publish to scans.gradle.com
...
- Allow init-script to publish to scans.gradle.com
- Add paramaters to enable build scan publishing
- Test coverage for build scan publishing
2024-01-25 08:56:13 -07:00
daz
75b3db10df
Remove node warnings from workflows
...
- Use setup-node to control Node version used to build
- Use Node20 compatible actions in custom actions
2024-01-24 16:01:15 -07:00
daz
f1361c71c2
Build outputs
2024-01-23 16:19:26 -07:00
daz
49ade81b5d
Add a new option to clear the dependency-graph
...
When changing workflow names or when changing to the new 'dependency-submission'
action, it can be useful to clear existing dependency graph snapshots from previous
submissions. While the old graphs will eventually "age out", the 'clear' option will
submit an empty dependency graph for an existing Job correlator, ensuring that old
dependency graphs don't linger.
2024-01-23 16:19:25 -07:00
daz
79fa674432
Remove old clear-dependency-graph action
2024-01-23 16:19:17 -07:00
daz
46878035be
Do full checks on release branches
2024-01-23 15:26:51 -07:00
daz
daf65fafa6
Remove branch specification from examples
2024-01-22 18:02:30 -07:00
daz
40c351e1fe
Improve documentation
...
- Provide summary of each action on main page
- Extract detailed documentation for each action
- Document usage with forked repositories
2024-01-22 16:15:33 -07:00
daz
d731f29856
Use separate steps in composite action
2024-01-22 11:13:02 -07:00
daz
23b4b1d03b
Add 'dependency-graph-action' input param
2024-01-22 11:02:29 -07:00
Daz DeBoer and GitHub
c55e400559
Add examples to README
2024-01-17 14:38:44 -07:00
daz
d3baa4b30f
Use gradle-build-action@v3-beta
2024-01-16 18:53:18 -07:00
daz
42452daeb5
Add explicit process.exit() to avoid wait for hanging promises
...
When using the `@actions/cache` library to save cache entries, it seems that one
or more Promises remain unresolved after the save completes.
With Node20 this causes a delay when exiting the process: the default behaviour
now wait for these Promises to complete. Adding an explicit `Process.exit()`
removes the delay, returning to the Node 16 behaviour.
Fixes #1038
2024-01-16 18:01:46 -07:00
daz
4b660dc33e
Add initial composite actions with smoke tests
...
These actions simply delegate to `gradle/gradle-build-action`
- `setup-gradle`: As `gradle-build-action` without the execution capability.
- `dependency-submission`: Submits a dependency graph for the project.
2024-01-16 09:49:44 -07:00
daz
346645706f
Don't overwrite dependency-graph env vars
...
This allows these vars to be explicitly set, which is required for
testing (and could prove useful for debugging).
2024-01-16 09:43:56 -07:00
daz
eba89ca5bb
Add initial top-level action
2024-01-15 18:17:05 -07:00
daz
5516b39940
Fix docs for dependency-graph param
2024-01-13 12:55:55 -07:00
Daz DeBoer and GitHub
7099569988
Improve dependency graph failure handling ( #1036 )
...
One goal for the original dependency-graph support was to minimize it's
impact on existing workflows, by operating transparently and not
impacting the build outcome. This meant that any failures in
dependency-graph generation or submission were logged as warnings, but
did not cause the workflow to fail.
However, in some cases the primary purpose of a workflow is to generate
and submit a dependency graph: in these cases it is desirable to have
the workflow fail when this process breaks.
This PR introduces a new `dependency-graph-continue-on-failure`
parameter, which when `false` will enable the latter behaviour. It also
adds test coverage for different failures in dependency graph generation
and submission.
Fixes #1034
Fixes #997
2024-01-13 15:32:28 +01:00
daz
610728fa8c
Build outputs
2024-01-13 07:21:40 -07:00
daz
a835cbb991
Use latest release of dependency-graph plugin
2024-01-13 07:21:40 -07:00
daz
ee4d92bb22
Document 'dependency-graph-continue-on-error'
2024-01-13 07:21:40 -07:00
daz
173b6ae553
Improve testing for dependency graph failures
...
- Update test to use input param
- Rename Job to indicate expected failure
2024-01-13 07:21:08 -07:00
daz
a01f794d92
Add dependency-graph-continue-on-failure input param
...
- Translate to env var for init-script support
- Use when deciding whether to log or rethrow errors
- Add a custom error type to trigger failure in post action
2024-01-13 07:20:45 -07:00
daz
369fcc54d8
Add tests for dependency graph failures
2024-01-13 07:20:45 -07:00
daz
6523a87c8f
Update supported Gradle versions to match plugin
2024-01-12 13:33:42 -07:00
daz
11693a1169
Run npm tasks concurrently
2024-01-12 07:22:24 -07:00
daz
0e6b90783e
Fix dependency-graph with configuration-cache
...
When state is reused from the configuration cache, no dependencies are resolved.
This fix prevents the action from submitting an empty dependency graph in this case.
2024-01-11 21:25:29 -07:00
Daz DeBoer and GitHub
1a18d0b2d3
Update description of cache key
2024-01-09 20:10:49 -07:00
Daz DeBoer and GitHub
7af89832c5
Further improvements to Merge Queue docs
2024-01-08 13:00:48 -07:00
Daz DeBoer and GitHub
b5ebb0cc96
Document caching with merge-queue
2024-01-08 12:58:38 -07:00