From a64cc1c224c67ba14f054138c513bc8eb8b3c592 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Sun, 28 Dec 2025 16:48:32 -0800 Subject: [PATCH] feat: add timeout to Qodana scan job and update type retrieval in GBM tests --- .github/workflows/Publish.yml | 1 + lib/feeds/gbm/Gbm.Tests.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 26433d95..6686f802 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -187,6 +187,7 @@ jobs: Qodana_Scan: needs: Build_Test_Coverage runs-on: ubuntu-latest + timeout-minutes: 20 permissions: contents: read checks: write diff --git a/lib/feeds/gbm/Gbm.Tests.cs b/lib/feeds/gbm/Gbm.Tests.cs index d9197729..7681a75e 100644 --- a/lib/feeds/gbm/Gbm.Tests.cs +++ b/lib/feeds/gbm/Gbm.Tests.cs @@ -272,7 +272,8 @@ public class GBMTests } // GBM should not expose any history storage - var type = gbm.GetType(); + // Use typeof() instead of GetType() to satisfy trimming analyzer + var type = typeof(GBM); var barsProperty = type.GetProperty("Bars"); Assert.Null(barsProperty);