Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pipe test results to datadog #2342

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
karrui marked this conversation as resolved.
Show resolved Hide resolved
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 }}
karrui marked this conversation as resolved.
Show resolved Hide resolved
- 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 }}
karrui marked this conversation as resolved.
Show resolved Hide resolved
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
karrui marked this conversation as resolved.
Show resolved Hide resolved
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 }}
karrui marked this conversation as resolved.
Show resolved Hide resolved
gatekeep:
name: Determine if Build & Deploy is needed
outputs:
Expand Down
Loading