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 ad2991d
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@v1
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
- 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@v1
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 }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
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@v1
with:
languages: js
service: gogovsg
api_key: ${{ secrets.DD_API_KEY }}
- run: npm run test:integration
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
gatekeep:
name: Determine if Build & Deploy is needed
outputs:
Expand Down

0 comments on commit ad2991d

Please sign in to comment.