diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b634d1b9..653d9de65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,19 @@ jobs: key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - run: npm ci - run: npm run test:docker - - run: . .env.test && npx jest --runInBand + # Not using Datadog Test Visibility action since we need to use the local + # (patched) package for it to work with neverthrow + - name: run tests + env: + NODE_OPTIONS: "-r dd-trace/ci/init" + DD_CIVISIBILITY_ENABLED: true + DD_CIVISIBILITY_AGENTLESS_ENABLED: true + DD_ENV: ci + DD_SITE: datadoghq.com + DD_SERVICE: isomer + DD_API_KEY: ${{ secrets.DD_API_KEY }} + DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER: github + run: . .env.test && npx jest --runInBand gatekeep: name: Determine if Build & Deploy is needed @@ -188,4 +200,4 @@ jobs: if: needs.gatekeep.outputs.proceed == 'true' uses: ./.github/workflows/deploy_prod.yml secrets: inherit - \ No newline at end of file + diff --git a/package-lock.json b/package-lock.json index ed8eb0c58..a4b0a9def 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18121,13 +18121,13 @@ } }, "node_modules/simple-git": { - "version": "3.24.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.24.0.tgz", - "integrity": "sha512-QqAKee9Twv+3k8IFOFfPB2hnk6as6Y6ACUpwCtQvRYBAes23Wv3SZlHVobAzqcE8gfsisCvPw3HGW3HYM+VYYw==", + "version": "3.27.0", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.27.0.tgz", + "integrity": "sha512-ivHoFS9Yi9GY49ogc6/YAi3Fl9ROnF4VyubNylgCkA+RVqLaKWnDSzXOVzya8csELIaWaYNutsEuAhZrtOjozA==", "dependencies": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.3.4" + "debug": "^4.3.5" }, "funding": { "type": "github", @@ -18135,11 +18135,11 @@ } }, "node_modules/simple-git/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -18151,9 +18151,9 @@ } }, "node_modules/simple-git/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, "node_modules/simple-swizzle": { "version": "0.2.2", diff --git a/src/services/db/__tests__/GitFileSystemService.spec.ts b/src/services/db/__tests__/GitFileSystemService.spec.ts index 99af59853..62f39d5f7 100644 --- a/src/services/db/__tests__/GitFileSystemService.spec.ts +++ b/src/services/db/__tests__/GitFileSystemService.spec.ts @@ -24,7 +24,6 @@ import { } from "@fixtures/github" import { MOCK_USER_ID_ONE } from "@fixtures/users" import { MediaTypeError } from "@root/errors/MediaTypeError" -import { MOCK_LATEST_LOG_ONE } from "@root/fixtures/review" import { MediaFileOutput } from "@root/types" import { GitHubCommitData } from "@root/types/commitData" import { GitDirectoryItem, GitFile } from "@root/types/gitfilesystem"