From 1debc07b6fc4202c296a16eda22e43b65c4e2102 Mon Sep 17 00:00:00 2001 From: darrenge Date: Thu, 28 Mar 2024 15:49:15 -0700 Subject: [PATCH] Trying to separate out core and cluster as part of matrix --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec3fc1d666..17a42447ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,7 @@ jobs: os: [ ubuntu-latest, windows-latest ] framework: [ 'net6.0', 'net8.0' ] configuration: [ 'Debug', 'Release' ] + test: [ 'Garnet.test', 'Garnet.cluster.test' ] if: needs.changes.outputs.garnet == 'true' steps: - name: Check out code @@ -66,10 +67,10 @@ jobs: - name: Build Garnet run: dotnet build --configuration ${{ matrix.configuration }} - name: Test Garnet - run: dotnet test -f ${{ matrix.framework }} --logger "console;verbosity=detailed" --logger trx --results-directory "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}" + run: dotnet test/${{ matrix.test }} -f ${{ matrix.framework }} --logger "console;verbosity=detailed" --logger trx --results-directory "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}" timeout-minutes: 30 - name: DEBUG - List test result files and their sizes - run: dir "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}" + run: dir "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}" - name: DEBUG - System Hard Drive space run: wmic LogicalDisk where DriveType="3" get DeviceID,Size,FreeSpace if: runner.os == 'Windows' @@ -79,8 +80,8 @@ jobs: - name: Upload test results uses: actions/upload-artifact@v4 with: - name: dotnet-garnet-results-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }} - path: GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }} + name: dotnet-garnet-results-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }} + path: GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }} if: ${{ always() }} # Job to build and test Tsavorite code (only if there were changes to it)