Skip to content

Commit

Permalink
chore: pipe test results to datadog (#2342)
Browse files Browse the repository at this point in the history
* chore: pipe test results to datadog

* chore: upgrade to v2, remove import flag
  • Loading branch information
halfwhole authored Oct 4, 2024
1 parent 02c9d3f commit 01ce46b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ jobs:
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci --legacy-peer-deps
- name: Configure Datadog Test Visibility
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
Expand All @@ -91,7 +99,15 @@ jobs:
${{ runner.OS }}-
- run: npm ci --legacy-peer-deps
- run: echo CLOUDMERSIVE_KEY=${{secrets.CLOUDMERSIVE_KEY}} >> .env
- name: Configure Datadog Test Visibility
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:e2e-headless
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
integration:
name: Integration Tests
runs-on: ubuntu-22.04
Expand All @@ -113,7 +129,15 @@ jobs:
- run: npm ci --legacy-peer-deps
- run: npm run dev &
- run: sleep 270
- name: Configure Datadog Test Visibility
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:integration
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
gatekeep:
name: Determine if Build & Deploy is needed
outputs:
Expand Down

0 comments on commit 01ce46b

Please sign in to comment.