mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 05:48:06 +00:00
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
This commit is contained in:
@@ -43,7 +43,7 @@ jobs:
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
ReSharper_Analysis:
|
ReSharper_Analysis:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 20
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
actions: write
|
actions: write
|
||||||
@@ -68,6 +68,9 @@ jobs:
|
|||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build solution
|
||||||
|
run: dotnet build QuanTAlib.slnx --no-restore --configuration Debug --nologo -m:1
|
||||||
|
|
||||||
- name: Prepare SARIF directory
|
- name: Prepare SARIF directory
|
||||||
run: mkdir -p .sarif
|
run: mkdir -p .sarif
|
||||||
|
|
||||||
@@ -81,6 +84,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
jb inspectcode QuanTAlib.slnx \
|
jb inspectcode QuanTAlib.slnx \
|
||||||
|
--no-build \
|
||||||
|
--exclude="**/bin/**;**/obj/**;**/TestResults/**;**/*.dll;**/*.pdb;**/*.cache" \
|
||||||
--format=sarif \
|
--format=sarif \
|
||||||
--output=.sarif/resharper.sarif
|
--output=.sarif/resharper.sarif
|
||||||
rc=$?
|
rc=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user