Skip to content

Commit

Permalink
feat(ci): try injecting datadog environment without action
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Sep 24, 2024
1 parent 9b4f626 commit e040f3f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,19 @@ jobs:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run test:docker
- name: Configure Datadog Test Visibility
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: isomer
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:docker
# Not using Datadog Test Visibility action since we need to use the local
# (patched) package for it to work with neverthrow
- name: run tests
env:
NODE_OPTIONS: "-r dd-trace/ci/init"
DD_CIVISIBILITY_ENABLED: true
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
DD_ENV: ci
DD_SITE: datadoghq.com
DD_SERVICE: isomer
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER: github
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
run: . .env.test && npx jest --runInBand

Expand Down

0 comments on commit e040f3f

Please sign in to comment.