-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
My repo has Go modules in a subdirectory named go. I followed the Github Actions instructions and have
steps:
- name: Configure Datadog Test Optimization
uses: datadog/test-visibility-github-action@f4b026bb8b8b53f323960cf86a849a0231ff93b9 # v2.5.0
with:
languages: go
api_key: ${{ secrets.DD_API_KEY }}
site: datadoghq.com
- name: Test
working-directory: go
run: go test -v ./...But the "Configure Datadog Test Optimization" step fails with
install_test_visibility.sh: OK
go: downloading github.com/DataDog/orchestrion v1.6.1
go: downloading github.com/rs/zerolog v1.34.0
...
getting GOMOD: in "/home/runner/work/modal/modal": `go env GOMOD` returned a blank string
Error: Orchestrion pin failed.
Error: Process completed with exit code 1.
I tried setting the GITHUB_WORKSPACE env var for that step like so but get the same error.
env:
GITHUB_WORKSPACE: ${{ github.workspace }}/go
Is there a way to use this action for Go in a subdirectory or does it only work if go.mod is at the repo's root?
pjrule
Metadata
Metadata
Assignees
Labels
No labels