Browse Source

build: send test results to datadog

Samuel Attard 1 year ago
parent
commit
afdfd7f61a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .circleci/config/base.yml

+ 6 - 0
.circleci/config/base.yml

@@ -1671,6 +1671,12 @@ commands:
             fi
       - store_test_results:
           path: src/junit
+      - run:
+          name: Send Test Results to Datadog
+          when: always
+          command: |
+            curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x "/usr/local/bin/datadog-ci"
+            DD_ENV=ci datadog-ci junit upload --service electron src/junit
 
       - *step-verify-mksnapshot
       - *step-verify-chromedriver