Skip to content

Commit 01ce46b

Browse files
authored
chore: pipe test results to datadog (#2342)
* chore: pipe test results to datadog * chore: upgrade to v2, remove import flag
1 parent 02c9d3f commit 01ce46b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@ jobs:
6666
${{ runner.OS }}-node-
6767
${{ runner.OS }}-
6868
- run: npm ci --legacy-peer-deps
69+
- name: Configure Datadog Test Visibility
70+
uses: datadog/test-visibility-github-action@v2
71+
with:
72+
languages: js
73+
service: gogovsg
74+
api_key: ${{ secrets.DD_API_KEY }}
6975
- run: npm run test
76+
env:
77+
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
7078
- name: Coveralls
7179
uses: coverallsapp/github-action@master
7280
with:
@@ -91,7 +99,15 @@ jobs:
9199
${{ runner.OS }}-
92100
- run: npm ci --legacy-peer-deps
93101
- run: echo CLOUDMERSIVE_KEY=${{secrets.CLOUDMERSIVE_KEY}} >> .env
102+
- name: Configure Datadog Test Visibility
103+
uses: datadog/test-visibility-github-action@v2
104+
with:
105+
languages: js
106+
service: gogovsg
107+
api_key: ${{ secrets.DD_API_KEY }}
94108
- run: npm run test:e2e-headless
109+
env:
110+
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
95111
integration:
96112
name: Integration Tests
97113
runs-on: ubuntu-22.04
@@ -113,7 +129,15 @@ jobs:
113129
- run: npm ci --legacy-peer-deps
114130
- run: npm run dev &
115131
- run: sleep 270
132+
- name: Configure Datadog Test Visibility
133+
uses: datadog/test-visibility-github-action@v2
134+
with:
135+
languages: js
136+
service: gogovsg
137+
api_key: ${{ secrets.DD_API_KEY }}
116138
- run: npm run test:integration
139+
env:
140+
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
117141
gatekeep:
118142
name: Determine if Build & Deploy is needed
119143
outputs:

0 commit comments

Comments
 (0)