Closed adamgrieger closed 4 months ago
I think I found the issue. Instead of doing the following:
NODE_OPTIONS: -r $DD_TRACE_PACKAGE
I think it needs to be:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
This was able to expand the variable correctly into the Node options. I suppose the ask of this ticket can be to update the README to reflect this?
Hi @adamgrieger, thank you for reporting this! Indeed, there was an error in the documentation, which is now fixed.
Environment details (Operating System, Cloud provider, etc): Microsoft's Playwright Docker image running on
ubuntu-latest
.mcr.microsoft.com/playwright:v1.45.1-jammy
datadog/test-visibility-github-action@v1.0.2
Describe what happened: I followed the README instructions for using the GitHub action, and I also included the
-r $DD_TRACE_PACKAGE
piece for theNODE_OPTIONS
env variable. When the action runs, it saysError: Cannot find module '$DD_TRACE_PACKAGE'
. However, the output from theConfigure Datadog Test Visibility
step shows theDD_TRACE_PACKAGE
variable. I have also gotten the same error when using a "vanilla" GitHub action instead of running in the Playwright Docker image. Below is the output for the Datadog action and the Playwright tests.Describe what you expected: I would expect the Playwright tests to be able to find
$DD_TRACE_PACKAGE
especially since it shows as populated in the previous CI step.Steps to reproduce the issue:
Thanks!