Skip to content

Commit 62e27da

Browse files
[SDTEST-1174] Add support for Go (#31)
* [SDTEST-1174] Add support for Go * Update action.yml Co-authored-by: Nikita Tkachenko <[email protected]> * Update action.yml * Add more info about orchestrion --------- Co-authored-by: Nikita Tkachenko <[email protected]>
1 parent 8706fca commit 62e27da

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# <img height="25" src="logos/test_visibility_logo.png" /> Datadog Test Optimization GitHub Action
22

33
GitHub Action that installs and configures [Datadog Test Optimization](https://docs.datadoghq.com/tests/).
4-
Supported languages are .NET, Java, Javascript, Python, and Ruby.
4+
Supported languages are .NET, Java, Javascript, Python, Ruby and Go.
55

66
## About Datadog Test Optimization
77

@@ -37,7 +37,7 @@ The action has the following parameters:
3737

3838
| Name | Description | Required | Default |
3939
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------- |
40-
| languages | List of languages to be instrumented. Can be either "all" or any of "java", "js", "python", "dotnet", "ruby" (multiple languages can be specified as a space-separated list). | true | |
40+
| languages | List of languages to be instrumented. Can be either "all" or any of "java", "js", "python", "dotnet", "ruby", "go" (multiple languages can be specified as a space-separated list). | true | |
4141
| api_key | Datadog API key. Can be found at https://app.datadoghq.com/organization-settings/api-keys | true | |
4242
| site | Datadog site. See https://docs.datadoghq.com/getting_started/site for more information about sites. | false | datadoghq.com |
4343
| service | The name of the service or library being tested. | false | |
@@ -46,6 +46,7 @@ The action has the following parameters:
4646
| js-tracer-version | The version of Datadog JS tracer to use. Defaults to the latest release. | false | |
4747
| python-tracer-version | The version of Datadog Python tracer to use. Defaults to the latest release. | false | |
4848
| ruby-tracer-version | The version of datadog-ci Ruby gem to use. Defaults to the latest release. | false | |
49+
| go-tracer-version | The version of Orchestrion to use. Defaults to the latest release. | false | |
4950
| java-instrumented-build-system | If provided, only the specified build systems will be instrumented (allowed values are `gradle`,`maven`,`sbt`,`ant`,`all`). `all` is a special value that instruments every Java process. If this property is not provided, all known build systems will be instrumented (Gradle, Maven, SBT, Ant). | false | |
5051

5152
### Additional configuration

action.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branding:
55
color: 'purple'
66
inputs:
77
languages:
8-
description: 'List of languages to be instrumented. Can be either "all" or any of "java", "js", "python", "dotnet", "ruby" (multiple languages can be specified as a space-separated list).'
8+
description: 'List of languages to be instrumented. Can be either "all" or any of "java", "js", "python", "dotnet", "ruby", "go" (multiple languages can be specified as a space-separated list).'
99
required: true
1010
api_key:
1111
description: 'Datadog API key. Can be found at https://app.datadoghq.com/organization-settings/api-keys'
@@ -32,6 +32,9 @@ inputs:
3232
ruby-tracer-version:
3333
description: 'The version of datadog-ci Ruby gem to use (optional). Defaults to the latest release.'
3434
required: false
35+
go-tracer-version:
36+
description: 'The version of Orchestrion automatic compile-time instrumentation of Go code (https://github.com/datadog/orchestrion) to use (optional). Defaults to the latest release.'
37+
required: false
3538
java-instrumented-build-system:
3639
description: 'If provided, only the specified build systems will be instrumented (allowed values are `gradle` and `maven`). Otherwise every Java process will be instrumented.'
3740
required: false
@@ -108,9 +111,10 @@ runs:
108111
DD_SET_TRACER_VERSION_JS: ${{ inputs.js-tracer-version }}
109112
DD_SET_TRACER_VERSION_PYTHON: ${{ inputs.python-tracer-version }}
110113
DD_SET_TRACER_VERSION_RUBY: ${{ inputs.ruby-tracer-version }}
114+
DD_SET_TRACER_VERSION_GO: ${{ inputs.go-tracer-version }}
111115
DD_INSTRUMENTATION_BUILD_SYSTEM_JAVA: ${{ inputs.java-instrumented-build-system }}
112-
INSTALLATION_SCRIPT_URL: https://install.datadoghq.com/scripts/install_test_visibility_v5.sh
113-
INSTALLATION_SCRIPT_CHECKSUM: 903f1146fe123a1f7c6accdc48411546eead172f2d577fb41876d29b537eb7d6
116+
INSTALLATION_SCRIPT_URL: https://install.datadoghq.com/scripts/install_test_visibility_v6.sh
117+
INSTALLATION_SCRIPT_CHECKSUM: 23c0bbba82ee72342dd3967c3147d1086debf6482e8fd729e226d051dd152cd4
114118

115119
- name: Propagate optional site input to environment variable
116120
if: "${{ inputs.site != '' }}"
@@ -152,5 +156,8 @@ runs:
152156
if [ ! -z "$DD_TRACER_VERSION_RUBY" ]; then
153157
echo "- __Ruby:__ $DD_TRACER_VERSION_RUBY" >> $GITHUB_STEP_SUMMARY
154158
fi
159+
if [ ! -z "$DD_TRACER_VERSION_GO" ]; then
160+
echo "- __Go:__ $DD_TRACER_VERSION_GO" >> $GITHUB_STEP_SUMMARY
161+
fi
155162
echo "---" >> $GITHUB_STEP_SUMMARY
156163
shell: bash

0 commit comments

Comments
 (0)