diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1febb21..4a876ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,16 +6,20 @@ on: - '.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 - run: msbuild ./src/MusicManager/MusicManager.sln /restore /p:Configuration=Release /p:GenerateAppxPackageOnBuild=false - - name: Test Domain - run: dotnet test ./src/MusicManager/MusicManager.Domain.Test/MusicManager.Domain.Test.csproj -c Release --no-build - - name: Test Applications - run: dotnet test ./src/MusicManager/MusicManager.Applications.Test/MusicManager.Applications.Test.csproj -c Release --no-build - - name: Test Presentation - run: dotnet test ./src/MusicManager/MusicManager.Presentation.Test/MusicManager.Presentation.Test.csproj -c Release --no-build + - name: 🔖 Check-out + uses: actions/checkout@v4 + + - name: ⚙️ Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8' + + - name: 🛠️ Build + run: dotnet build ./src/MusicManager/MusicManager.sln -c Release -p:ContinuousIntegrationBuild=true -p:GenerateAppxPackageOnBuild=false + + - name: 🕵️ Test + run: dotnet test ./src/MusicManager/MusicManager.sln -c Release --no-build