diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b634d1b9..ec55caac3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -188,4 +199,4 @@ jobs: if: needs.gatekeep.outputs.proceed == 'true' uses: ./.github/workflows/deploy_prod.yml secrets: inherit - \ No newline at end of file +