Skip to content

Commit

Permalink
chore: add datadog test action (#1449)
Browse files Browse the repository at this point in the history
* chore: add datadog test action

* chore: update simplegit

right now, our tests are failing in ci due to the `cwd` call. this might
be due to simple-git's build, so we are attempting to update

* feat(ci): try injecting datadog environment without action

* fix(ci): remove redundant env

---------

Co-authored-by: Kar Rui Lau <[email protected]>
  • Loading branch information
seaerchin and karrui authored Sep 24, 2024
1 parent 2fbf00b commit 8509ddd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -188,4 +200,4 @@ jobs:
if: needs.gatekeep.outputs.proceed == 'true'
uses: ./.github/workflows/deploy_prod.yml
secrets: inherit


22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/services/db/__tests__/GitFileSystemService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8509ddd

Please sign in to comment.