From c82d6cde111f93b9cb2b51a5a271883ab63e3492 Mon Sep 17 00:00:00 2001 From: Gaspar Nagy Date: Fri, 19 Jan 2024 13:59:24 +0100 Subject: [PATCH] fix config --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2f773cef..f325a5ab8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: outputs: product_version_suffix: ${{ steps.versions.outputs.product_version_suffix }} + product_configuration: ${{ steps.versions.outputs.product_configuration }} steps: - uses: actions/checkout@v3 @@ -45,10 +46,14 @@ jobs: $date = [datetime]::Today $dateString = $date.ToString('yyyyMMdd') Write-Output "product_version_suffix=ci$dateString-${env:GITHUB_RUN_NUMBER}" >> $env:GITHUB_OUTPUT + $productConfig = "${{ inputs.configuration }}" + if ($productConfig -eq "") + $productConfig = "Debug" + Write-Output "product_configuration=$productConfig" >> $env:GITHUB_OUTPUT - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore -p:VersionSuffix=${{ steps.versions.outputs.product_version_suffix }} -c ${{ inputs.configuration }} + run: dotnet build --no-restore -p:VersionSuffix=${{ steps.versions.outputs.product_version_suffix }} -c ${{ steps.versions.outputs.product_configuration }} - name: Runtime Tests run: dotnet test ./Tests/Reqnroll.RuntimeTests/Reqnroll.RuntimeTests.csproj --no-build --verbosity normal -f net6.0 - name: Plugin Tests @@ -74,7 +79,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ inputs.configuration }} + run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ needs.build.outputs.product_configuration }} - name: Set .NET 6 SDK run: dotnet new globaljson --sdk-version 6.0.418 - name: xUnit Specs @@ -109,7 +114,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ inputs.configuration }} + run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ needs.build.outputs.product_configuration }} - name: Set .NET 6 SDK run: dotnet new globaljson --sdk-version 6.0.418 - name: NUnit Specs @@ -145,7 +150,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ inputs.configuration }} + run: dotnet build --no-restore -p:VersionSuffix=${{ needs.build.outputs.product_version_suffix }} -c ${{ needs.build.outputs.product_configuration }} - name: Set .NET 6 SDK run: dotnet new globaljson --sdk-version 6.0.418 - name: MsTest Specs