Skip to content

Commit

Permalink
chore: pipe test results to datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
halfwhole committed Sep 27, 2024
1 parent 02c9d3f commit 7e686e9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ jobs:
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci --legacy-peer-deps
- name: Configure Datadog Test Visibility
uses: datadog/test-visibility-github-action@v1
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test
env:
# Required to allow Datadog to trace Vitest tests
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
Expand All @@ -91,6 +100,12 @@ 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@v1
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:e2e-headless
integration:
name: Integration Tests
Expand All @@ -113,6 +128,12 @@ 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@v1
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:integration
gatekeep:
name: Determine if Build & Deploy is needed
Expand Down

0 comments on commit 7e686e9

Please sign in to comment.