From cc71a13fc0c2dc6214b95cbbc7d0dec670389de9 Mon Sep 17 00:00:00 2001 From: jbe2277 Date: Wed, 30 Oct 2024 22:04:51 +0100 Subject: [PATCH 1/2] Build: Improve System.Waf.CI.yml --- .github/workflows/System.Waf.CI.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) 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: From 7ae897ea3b179ce5674e23b589a604fe0b75a6cb Mon Sep 17 00:00:00 2001 From: jbe2277 Date: Wed, 30 Oct 2024 22:13:16 +0100 Subject: [PATCH 2/2] Build: minor improvement --- .github/workflows/System.Waf.CI.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/System.Waf.CI.yml b/.github/workflows/System.Waf.CI.yml index 9593872f..b7697a84 100644 --- a/.github/workflows/System.Waf.CI.yml +++ b/.github/workflows/System.Waf.CI.yml @@ -40,7 +40,8 @@ jobs: - name: 🖥️ UI Test run: dotnet test ./src/Samples.UITest/Samples.UITest.sln --logger "console;verbosity=detailed" -maxCpuCount:1 - - name: Upload UI Test results + + - name: 📦 Upload UI Test results uses: actions/upload-artifact@v4 if: always() with: