diff --git a/.drone.yml b/.drone.yml index 2e021ce..b773b1b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,12 +11,22 @@ steps: - name: docker-build-and-push image: plugins/docker settings: - #dockerfile: Sources/Dockerfile + dockerfile: Sources/API_LoL/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/corentin.richard/EntityFramework_ConsoDeServices_TP + repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeservices_tp username: from_secret: SECRET_REGISTRY_USERNAME password: - from_secret: SECRET_REGISTRY_PASSWORD \ No newline at end of file + from_secret: SECRET_REGISTRY_PASSWORD + +# docker test + - name: tests + image: mcr.microsoft.com/dotnet/sdk:6.0 + commands: + - cd Sources/ + - dotnet restore LeagueOfLegends.sln + - dotnet test LeagueOfLegends.sln --no-restore + depends_on: [docker-build-and-push] +