From 3963d6dbd87cd7cba6ef7f986ef0284c6cbb97b3 Mon Sep 17 00:00:00 2001 From: Hugo LIVET Date: Thu, 22 Dec 2022 15:30:38 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index c3b3fc6..5e9c2aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,9 +10,9 @@ steps: - name: build image: mcr.microsoft.com/dotnet/sdk:6.0 commands: + - dotnet add package Newtonsoft.Json - cd Sources - dotnet workload restore - - dotnet add package Newtonsoft.Json - dotnet restore CI_MAUI.sln - dotnet build CI_MAUI.sln -c Release --no-restore - dotnet publish CI_MAUI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release @@ -28,9 +28,9 @@ steps: - name: code-analysis image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 commands: + - dotnet add package Newtonsoft.Json - cd Sources/ - dotnet workload restore - - dotnet add package Newtonsoft.Json - dotnet restore CI_MAUI.sln - dotnet sonarscanner begin /k:ConsEco /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet build CI_MAUI.sln -c Release --no-restore