From 41aa974dbe23a032c6a118dc074ff26b851e6afd Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Fri, 15 Mar 2024 12:52:47 -0700 Subject: [PATCH] feat(openchallenges): add the task `sonar` to the project `openchallenges-edam-etl` (#2566) --- .github/CODEOWNERS | 6 +++++- apps/openchallenges/edam-etl/project.json | 10 +++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ba2332445b..88e3ea2ba5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,10 +3,14 @@ /apps/openchallenges/ @rrchai @tschaffter @vpchung /libs/openchallenges/ @rrchai @tschaffter @vpchung -# OC DB content +# OpenChallenges +## DB content /apps/openchallenges/challenge-service/src/main/resources/db/ @tschaffter @vpchung @gaiaandreoletti /apps/openchallenges/organization-service/src/main/resources/db/ @tschaffter @vpchung @gaiaandreoletti +## EDAM ETL +/apps/openchallenges/edam-etl/ @mdsage1 + # Schematic /apps/schematic/ @andrewelamb @GiaJordan @linglp @mialy-defelice @milen-sage /libs/schematic/ @andrewelamb @GiaJordan @linglp @mialy-defelice @milen-sage diff --git a/apps/openchallenges/edam-etl/project.json b/apps/openchallenges/edam-etl/project.json index 51a83c194d..742693c3c5 100644 --- a/apps/openchallenges/edam-etl/project.json +++ b/apps/openchallenges/edam-etl/project.json @@ -73,12 +73,20 @@ "command": "trivy image ghcr.io/sage-bionetworks/{projectName}:local --quiet", "color": true } + }, + "sonar": { + "executor": "nx:run-commands", + "options": { + "command": "bash $WORKSPACE_DIR/tools/sonar-scanner.sh --project-key {projectName} --project-dir .", + "cwd": "{projectRoot}" + } } }, "tags": [ "type:app", "scope:backend", - "language:python" + "language:python", + "package-manager:poetry" ], "implicitDependencies": [] } \ No newline at end of file