Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add datadog test action #1449

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading