From d892fa6029f68cf48479631183f69fb8d49636eb Mon Sep 17 00:00:00 2001 From: jbe2277 Date: Thu, 31 Oct 2024 19:25:37 +0100 Subject: [PATCH] Build: Improve main.yml --- .github/workflows/main.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1febb21..b9e2cd0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,18 +4,25 @@ on: paths: - 'src/**' - '.github/workflows/**' + jobs: build: + name: 🛠️ Build and test runs-on: windows-2022 + steps: - - uses: actions/checkout@v3 - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.1 - - name: Build + - name: 🔖 Check-out + uses: actions/checkout@v4 + + - name: ⚙️ Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: 🛠️ Build run: msbuild ./src/MusicManager/MusicManager.sln /restore /p:Configuration=Release /p:GenerateAppxPackageOnBuild=false - - name: Test Domain + + - name: 🕵️ Test Domain run: dotnet test ./src/MusicManager/MusicManager.Domain.Test/MusicManager.Domain.Test.csproj -c Release --no-build - - name: Test Applications + - name: 🕵️ Test Applications run: dotnet test ./src/MusicManager/MusicManager.Applications.Test/MusicManager.Applications.Test.csproj -c Release --no-build - - name: Test Presentation + - name: 🕵️ Test Presentation run: dotnet test ./src/MusicManager/MusicManager.Presentation.Test/MusicManager.Presentation.Test.csproj -c Release --no-build