diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2e88c68..dbc00973 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: [main] + branches: [main, dev] pull_request: branches: [main, dev] release: @@ -30,6 +30,13 @@ jobs: dotnet restore Dashboard/Dashboard.csproj dotnet restore Lite/PerformanceMonitorLite.csproj dotnet restore Installer/PerformanceMonitorInstaller.csproj + dotnet restore Lite.Tests/Lite.Tests.csproj + + - name: Build Lite.Tests + run: dotnet build Lite.Tests/Lite.Tests.csproj -c Release --no-restore + + - name: Run Lite tests + run: dotnet test Lite.Tests/Lite.Tests.csproj -c Release --no-build --verbosity normal - name: Get version id: version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index cc844581..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: CI - -on: - push: - branches: [dev] - pull_request: - branches: [dev] - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - - name: Setup .NET 8.0 - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Restore dependencies - run: | - dotnet restore Dashboard/Dashboard.csproj - dotnet restore Lite/PerformanceMonitorLite.csproj - dotnet restore Installer/PerformanceMonitorInstaller.csproj - dotnet restore Lite.Tests/Lite.Tests.csproj - - - name: Build all projects - run: | - dotnet build Dashboard/Dashboard.csproj -c Release --no-restore - dotnet build Lite/PerformanceMonitorLite.csproj -c Release --no-restore - dotnet build Installer/PerformanceMonitorInstaller.csproj -c Release --no-restore - dotnet build Lite.Tests/Lite.Tests.csproj -c Release --no-restore - - - name: Run tests - run: dotnet test Lite.Tests/Lite.Tests.csproj -c Release --no-build --verbosity normal