From 92ccb7e53a5c370a2588409e7135f15c0f2a503f Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Wed, 4 Mar 2026 09:52:09 -0800 Subject: [PATCH] fix: resolve ReSharper InspectCode CI timeout - Pre-build solution before inspectcode to avoid redundant 4-min internal build - Add --no-build flag to jb inspectcode - Add --exclude patterns for bin/obj/TestResults and binary artifacts - Bump timeout-minutes from 15 to 20 as safety margin --- .github/workflows/Publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index d812be06..a04b6a06 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -43,7 +43,7 @@ jobs: # ============================================================================== ReSharper_Analysis: runs-on: ubuntu-latest - timeout-minutes: 15 + timeout-minutes: 20 permissions: contents: read actions: write @@ -68,6 +68,9 @@ jobs: - name: Restore dependencies run: dotnet restore + - name: Build solution + run: dotnet build QuanTAlib.slnx --no-restore --configuration Debug --nologo -m:1 + - name: Prepare SARIF directory run: mkdir -p .sarif @@ -81,6 +84,8 @@ jobs: run: | set +e jb inspectcode QuanTAlib.slnx \ + --no-build \ + --exclude="**/bin/**;**/obj/**;**/TestResults/**;**/*.dll;**/*.pdb;**/*.cache" \ --format=sarif \ --output=.sarif/resharper.sarif rc=$?