From 242f5a92836f21f371b4d1e42add23609187d2c5 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Fri, 24 May 2024 16:12:07 +0100 Subject: [PATCH] ci: add back test cache --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c36607f..c2d3ae0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,7 +99,7 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} env: - # NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages VELOPACK_GITHUB_TEST_TOKEN: ${{ secrets.VELOPACK_GITHUB_TEST_TOKEN }} VELOPACK_B2_TEST_TOKEN: ${{ secrets.VELOPACK_B2_TEST_TOKEN }} VELOPACK_AZ_TEST_TOKEN: ${{ secrets.VELOPACK_AZ_TEST_TOKEN }} @@ -107,12 +107,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - # - uses: actions/cache@v4 - # with: - # path: ${{ github.workspace }}/.nuget/packages - # key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} - # restore-keys: | - # ${{ runner.os }}-nuget- + - uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- - name: Install NBGV run: dotnet tool install -g nbgv if: ${{ matrix.os == 'macos-latest' }} @@ -161,7 +161,7 @@ jobs: name: rust-${{ matrix.os }} path: src/Rust/target/release - name: Test .NET - run: dotnet test --no-build -c Release -l "console;verbosity=detailed;consoleLoggerParameters=ErrorsOnly" -l GithubActions -- RunConfiguration.CollectSourceInformation=true + run: dotnet test --no-build -c Release -l "console;verbosity=detailed;consoleLoggerParameters=ErrorsOnly;ForceConsoleColor;Summary" -l GithubActions -- RunConfiguration.CollectSourceInformation=true # - name: Test .NET Velopack.Tests # run: dotnet test --no-build -c Release test/Velopack.Tests/Velopack.Tests.csproj # - name: Test .NET Velopack.Packaging.Tests