From dc3f18d97d53f8565055dcb99446484595a896e1 Mon Sep 17 00:00:00 2001 From: seaerchin Date: Tue, 24 Sep 2024 12:23:31 +0800 Subject: [PATCH] chore: add datadog test action --- .github/workflows/ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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 +