diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index d49a073..427db0e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -51,6 +51,12 @@ jobs: - name: Build x64 libraries run: dotnet build LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj -c Release --no-restore -p:Platform=x64 + - name: Run library tests + run: dotnet test LibreHardwareMonitorLib.Tests\LibreHardwareMonitorLib.Tests.csproj -c Release -p:Platform=x64 + + - name: Run WinUI tests + run: dotnet test LibreHardwareMonitor.Windows.WinUI.Tests\LibreHardwareMonitor.Windows.WinUI.Tests.csproj -c Release -p:Platform=x64 + - name: Publish x64 libraries uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # 7.0.1 with: diff --git a/.github/workflows/pull requests.yml b/.github/workflows/pull-requests.yml similarity index 90% rename from .github/workflows/pull requests.yml rename to .github/workflows/pull-requests.yml index 3088799..092ff31 100644 --- a/.github/workflows/pull requests.yml +++ b/.github/workflows/pull-requests.yml @@ -3,6 +3,7 @@ name: pull requests on: pull_request: branches: [main] + workflow_dispatch: jobs: build: @@ -52,6 +53,12 @@ jobs: - name: Build x64 libraries run: dotnet build LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj -c Release --no-restore -p:Platform=x64 + - name: Run library tests + run: dotnet test LibreHardwareMonitorLib.Tests\LibreHardwareMonitorLib.Tests.csproj -c Release -p:Platform=x64 + + - name: Run WinUI tests + run: dotnet test LibreHardwareMonitor.Windows.WinUI.Tests\LibreHardwareMonitor.Windows.WinUI.Tests.csproj -c Release -p:Platform=x64 + - name: Publish x64 libraries uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # 7.0.1 with: