From dd92939a6f43f799aa9b24e28b75259b011005bf Mon Sep 17 00:00:00 2001 From: Matthias Langhard Date: Mon, 14 Dec 2020 14:10:57 +0100 Subject: [PATCH] chore: fixes deployment to run with shared runners --- .gitlab-ci.yml | 4 ++++ tests/Novaloop.PaymoApi.Tests.csproj | 25 +++++++++---------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f626432..ba3e126 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,12 +3,16 @@ stages: - publish running tests for tag: + tags: + - shared image: mcr.microsoft.com/dotnet/core/sdk:3.1 stage: test script: - dotnet test ./tests publish to nuget: + tags: + - shared only: - /^\d*.\d*.\d*$/ # gets triggered if the commit tag is in the form n.n.n where n is any number image: mcr.microsoft.com/dotnet/core/sdk:3.1 diff --git a/tests/Novaloop.PaymoApi.Tests.csproj b/tests/Novaloop.PaymoApi.Tests.csproj index 19866ac..f35f1c1 100644 --- a/tests/Novaloop.PaymoApi.Tests.csproj +++ b/tests/Novaloop.PaymoApi.Tests.csproj @@ -1,22 +1,15 @@ - - netstandard2.0 + + netcoreapp3.1 - false - + false + - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - + + + + +