From f28cd676bc86a9be540452cc37dfb25f76ee502e Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 25 Feb 2025 14:07:49 -0500 Subject: [PATCH 1/5] Update github actions --- .github/workflows/continuous_integration.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index a6f8a53..07be8a5 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -17,6 +17,14 @@ jobs: submodules: true # Fetch and checkout submodules fetch-depth: 0 # Ensure the full history is fetched, useful when dealing with submodules + - name: 📦 Cache NuGet packages + uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} + restore-keys: | + ${{ runner.os }}-nuget- + - name: 💉 Install dependencies run: dotnet restore @@ -26,6 +34,14 @@ jobs: - name: ✅ Test run: dotnet test --no-restore --verbosity normal + - name: ⬆️ Publish Test Results + uses: actions/upload-artifact@v4 + if: success() || failure() # run this step even if previous step failed + with: + name: test-results + path: '**/TestResults/*.trx' + retention-days: 30 + - name: 📦 Package NuGet run: dotnet pack --no-build --configuration Release @@ -34,6 +50,8 @@ jobs: with: name: nupkg path: Guppi.Console/nupkg/*.nupkg + retention-days: 5 + if-no-files-found: error publish: runs-on: ubuntu-latest From 1fc1c40443a2654d1e322bd0d79a0b97e18e5287 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 25 Feb 2025 14:10:46 -0500 Subject: [PATCH 2/5] Get all test result files --- .github/workflows/continuous_integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 07be8a5..4e80f38 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -39,7 +39,7 @@ jobs: if: success() || failure() # run this step even if previous step failed with: name: test-results - path: '**/TestResults/*.trx' + path: '**/TestResults/*' retention-days: 30 - name: 📦 Package NuGet From b4c407d365314fbab7bc51270761c15ef7ecb454 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 25 Feb 2025 14:12:03 -0500 Subject: [PATCH 3/5] Use newer action --- .github/workflows/continuous_integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 4e80f38..962eb8f 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 # Ensure the full history is fetched, useful when dealing with submodules - name: 📦 Cache NuGet packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} From a049a8d980650a1766a64768fd8ad7f42d5a0a80 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 25 Feb 2025 14:14:58 -0500 Subject: [PATCH 4/5] Generate test results --- .github/workflows/continuous_integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 962eb8f..aff8e84 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -32,14 +32,14 @@ jobs: run: dotnet build --configuration Release --no-restore - name: ✅ Test - run: dotnet test --no-restore --verbosity normal + run: dotnet test --no-restore --verbosity normal --logger "trx;LogFileName=TestResults.trx" - name: ⬆️ Publish Test Results uses: actions/upload-artifact@v4 if: success() || failure() # run this step even if previous step failed with: name: test-results - path: '**/TestResults/*' + path: '**/TestResults/*.trx' retention-days: 30 - name: 📦 Package NuGet From cc8f7ee82e716fb14b9e1fd055e54563d8049e92 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Tue, 25 Feb 2025 14:36:05 -0500 Subject: [PATCH 5/5] Increment version --- Guppi.Console/Guppi.Console.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Guppi.Console/Guppi.Console.csproj b/Guppi.Console/Guppi.Console.csproj index 2c5a6f0..0eacd4e 100644 --- a/Guppi.Console/Guppi.Console.csproj +++ b/Guppi.Console/Guppi.Console.csproj @@ -13,7 +13,7 @@ https://github.com/rprouse/guppi https://github.com/rprouse/guppi dotnet-guppi - 6.5.0 + 6.5.1 true guppi ./nupkg