From 47d8ce38232e82036406bd5d83e23a6820063d32 Mon Sep 17 00:00:00 2001 From: Ivan Panayotov Date: Tue, 19 Mar 2024 16:28:24 +0200 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f802a34..abf25d4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,9 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + +env: + GUI_PROJECT_PATH : 'DDS-D3DTX-Converter/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/DDS_D3DTX_Converter.csproj' jobs: build: @@ -21,10 +24,8 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore - working-directory: DDS-D3DTX-Converter/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter + run: dotnet restore ${{env.GUI_PROJECT_PATH}} - name: Build - run: dotnet build --configuration Release --no-restore - working-directory: DDS-D3DTX-Converter/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter + run: dotnet build ${{env.GUI_PROJECT_PATH}} --configuration Release --no-restore - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test ${{env.GUI_PROJECT_PATH}} --no-build --verbosity normal