Skip to content

Commit

Permalink
chore: add datadog test action
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Sep 24, 2024
1 parent 2fbf00b commit dc3f18d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,19 @@ jobs:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run test:docker
- run: . .env.test && npx jest --runInBand
- run: npm run test:docker
- name: Configure Datadog Test Visibility
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: isomer
api_key: ${{ secrets.DD_API_KEY }}
- name: run tests
env:
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }}
run: . .env.test && npx jest --runInBand

gatekeep:
name: Determine if Build & Deploy is needed
Expand Down Expand Up @@ -188,4 +199,4 @@ jobs:
if: needs.gatekeep.outputs.proceed == 'true'
uses: ./.github/workflows/deploy_prod.yml
secrets: inherit


0 comments on commit dc3f18d

Please sign in to comment.