You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -9,17 +12,15 @@ A collection of composite GitHub Actions related to [Develocity](https://gradle.
9
12
### Features
10
13
11
14
The action enables three features:
12
-
-[Build Summary (Maven only)](#build-summary-maven-only): Display a summary of the Maven builds as a GitHub workflow summary or as a pull-request comment
-[Capture Build Scan® data (Maven only)](#capture-build-scan-data-maven-only): Capture published Build Scan® links and unpublished Build Scan® data as a workflow artifact per job with prefix `build-scan-data-maven`, which can then be published in a dependent workflow.
15
+
-[Build Summary](#build-summary): Display a summary of the Maven builds as a GitHub workflow summary or as a pull-request comment
-[Capture Build Scan® data](#capture-build-scan-data): Capture published Build Scan® links and unpublished Build Scan® data as a workflow artifact per job with prefix `build-scan-data-maven`, which can then be published in a dependent workflow.
15
18
16
19
> [!NOTE]
17
20
> This action can be combined with the `maven-publish-build-scan` action to publish Build Scan® in a fork context. See [the relevant section](#maven-publish-build-scan-action) for details.
18
21
19
22
### Usage
20
23
21
-
#### Setting up Develocity for Maven
22
-
23
24
Insert the `Setup Maven` step once in each job having steps invoking Maven. Make sure to put the step before the Maven invocation.
24
25
25
26
```yaml
@@ -33,27 +34,12 @@ jobs:
33
34
[...]
34
35
```
35
36
36
-
#### Setting up Develocity for npm
37
-
38
-
Insert the `Setup npm` step once in each job having steps invoking npm. Make sure to put the step before the npm invocation.
39
-
40
-
```yaml
41
-
name: PR Build
42
-
jobs:
43
-
build:
44
-
- name: Setup npm
45
-
uses: gradle/develocity-actions/setup-npm@v2.0
46
-
- name: Build with npm
47
-
run: npm run build
48
-
[...]
49
-
```
50
-
51
37
> [!NOTE]
52
38
> When authenticated access is required to publish a Build Scan®, it is recommended to provide as input `develocity-access-key` to the `setup-maven` and/or `setup-npm` steps. This triggers a request for a [short-lived access token](https://docs.gradle.com/develocity/current/reference/api-manual/#short-lived-access-tokens) instead of relying on the `DEVELOCITY_ACCESS_KEY` environment variable.
53
39
54
40
---
55
41
56
-
#### Build Summary (Maven only)
42
+
#### Build Summary
57
43
58
44
###### Requirements
59
45
- The Maven project must be compiled with JDK 8 or above
@@ -126,7 +112,7 @@ Additionally, the summary details will be accessible in `$RUNNER_TEMP/build-scan
126
112
127
113
---
128
114
129
-
#### Develocity extensions injection (Maven only)
115
+
#### Develocity extensions injection
130
116
131
117
If one wants to inject Develocity Maven Extension (and optionally CCUD Maven Extension), the `develocity-injection-enabled` input should be set to `true`. The `develocity-url`, `develocity-maven-extension-version`, and optionally `develocity-ccud-maven-extension-version` inputs should be set accordingly:
132
118
```yaml
@@ -149,7 +135,7 @@ jobs:
149
135
150
136
---
151
137
152
-
#### Capture Build Scan® data (Maven only)
138
+
#### Capture Build Scan® data
153
139
154
140
###### Requirements
155
141
- The Maven project must be compiled with JDK 8 or above
@@ -186,8 +172,6 @@ The output name is `build-scan-url` and can be used in subsequent steps of the w
|`develocity-access-key`|*Optional*: Develocity access key. Should be set to a secret containing the Develocity Access key | `` |
@@ -212,20 +196,6 @@ The output name is `build-scan-url` and can be used in subsequent steps of the w
212
196
|`develocity-custom-develocity-maven-extension-coordinates`|*Optional*: Will not inject the Develocity Maven extension if an extension with provided coordinates is found (value is an artifactId of the extension) ||
213
197
|`develocity-custom-ccud-extension-coordinates`|*Optional*: Will not inject the CCUD extension if an extension with provided coordinates is found (value is an artifactId of the extension) ||
|`develocity-access-key`|*Optional*: Develocity access key. Should be set to a secret containing the Develocity Access key | `` |
220
-
|`develocity-token-expiry`|*Optional*: Develocity short-lived access tokens expiry in hours |`2`|
221
-
|`develocity-injection-enabled`|*Optional*: Whether to enable or not Develocity npm agent injection ||
222
-
|`develocity-url`|*Optional*: Develocity server URL ||
223
-
|`develocity-npm-agent-version`|*Optional*: Develocity npm agent version to be injected (ignored when `develocity-npm-agent-url-override` is set) |`latest`|
| `develocity-injection-enabled` | *Optional*: Whether to enable or not Develocity npm agent injection | |
337
+
| `develocity-url` | *Optional*: Develocity server URL | |
338
+
| `develocity-npm-agent-version` | *Optional*: Develocity npm agent version to be injected (ignored when `develocity-npm-agent-url-override` is set) | `latest` |
0 commit comments