diff --git a/.github/workflows/System.Waf.CI.yml b/.github/workflows/System.Waf.CI.yml index 9115c2ac..9593872f 100644 --- a/.github/workflows/System.Waf.CI.yml +++ b/.github/workflows/System.Waf.CI.yml @@ -6,18 +6,30 @@ on: - 'src/System.Waf/**' - 'src/Samples.UITest/**' - '.github/workflows/**' + jobs: build: + name: 🛠️ Build and test runs-on: windows-latest + steps: - - uses: actions/checkout@v4 + - name: 🔖 Check-out + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Build + + - name: ⚙️ Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8' + + - name: 🛠️ Build run: dotnet build ./src/System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true - - name: Test + + - name: 🕵️ Test run: dotnet test ./src/System.Waf/System.Waf.sln -c Release --no-build - - name: Upload NuGet Packages + + - name: 📦 Upload NuGet Packages uses: actions/upload-artifact@v4 with: name: Packages @@ -26,7 +38,7 @@ jobs: src/System.Waf/System.Waf/**/*.nupkg src/System.Waf/System.Waf/**/*.snupkg - - name: UI Test + - name: 🖥️ UI Test run: dotnet test ./src/Samples.UITest/Samples.UITest.sln --logger "console;verbosity=detailed" -maxCpuCount:1 - name: Upload UI Test results uses: actions/upload-artifact@v4 @@ -35,8 +47,9 @@ jobs: name: UITestResults if-no-files-found: ignore path: | - out/Samples.UITest/ - - name: Upload UI Test App logs + out/Samples.UITest/ + + - name: 📦 Upload UI Test App logs uses: actions/upload-artifact@v4 if: always() with: