Skip to content

Commit ef7e016

Browse files
authored
fix: pin js-tracer-version in ci (#1242)
## Problem CI failing due to new dd-tracer version. ## Solution Pin to last working version
2 parents d61e6c4 + 34296f0 commit ef7e016

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/test-and-build.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@ jobs:
1919
- run: npm ci
2020
env:
2121
NPM_TASKFORCESH_TOKEN: ${{ secrets.NPM_TASKFORCESH_TOKEN }}
22-
# - name: Configure Datadog Test Visibility
23-
# env:
24-
# DD_SERVICE_NAME: ${{ secrets.DD_SERVICE_NAME }}
25-
# DD_API_KEY: ${{ secrets.DD_API_KEY }}
26-
# uses: datadog/test-visibility-github-action@v1
27-
# with:
28-
# languages: js
29-
# service: ${{ secrets.DD_SERVICE_NAME }}
30-
# api_key: ${{ secrets.DD_API_KEY }}
22+
- name: Configure Datadog Test Visibility
23+
env:
24+
DD_SERVICE_NAME: ${{ secrets.DD_SERVICE_NAME }}
25+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
26+
uses: datadog/test-visibility-github-action@v2
27+
with:
28+
languages: js
29+
service: ${{ secrets.DD_SERVICE_NAME }}
30+
api_key: ${{ secrets.DD_API_KEY }}
31+
# we need to pin this for now since 5.68.0 breaks the ci
32+
js-tracer-version: 5.67.0
3133
- run: npm run lint
3234
- run: echo "✅ Your code has been linted."
3335
- run: npm run test
34-
# env:
35-
# # Required to allow Datadog to trace Vitest tests
36-
# NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
36+
env:
37+
# Required to allow Datadog to trace Vitest tests
38+
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
3739
- run: echo "✅ All tests passed."
3840
- run: VITE_MODE=test npm run build
3941
- run: echo "✅ Your code has been built."

0 commit comments

Comments
 (0)