From 7119dda26c023095c38033a7c5194398a515555b Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Mon, 19 Apr 2021 10:41:20 +0000 Subject: [PATCH] wf: bad windows 2 --- .github/workflows/verification.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index f57493b74..9448fa554 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -63,14 +63,11 @@ jobs: dotnet pack -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true dotnet pack src/bunit.template/ -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true - # Excluding windows because actions on windows doesnt seem to do variable replacement correct, e.g.: - # /packages/bunit.template.$VERSION.nupkg becomes - # /packages/bunit.template..nupkg but should be - # /packages/bunit.template.x.x.x.nupkg where x.x.x is the current version. + # Excluding windows because the restore step doesnt seem to work correct. - name: ✔ Verify template if: matrix.os != 'windows-latest' run: | - dotnet new --install ${GITHUB_WORKSPACE}/packages/bunit.template.$VERSION.nupkg + dotnet new --install bunit.template --nuget-source ${GITHUB_WORKSPACE}/packages dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/TemplateTest dotnet restore ${GITHUB_WORKSPACE}/TemplateTest --source ${GITHUB_WORKSPACE}/packages --source https://api.nuget.org/v3/index.json dotnet test ${GITHUB_WORKSPACE}/TemplateTest