From 67274ab7b5dab3b19fc057ba7ef2546c3bc4ead4 Mon Sep 17 00:00:00 2001 From: nitrobass24 Date: Fri, 27 Feb 2026 23:54:05 -0600 Subject: [PATCH] Fix CI: create app data directory before running tests The event_handlers_should_be_unique test requires the Prowlarr app data directory to exist. Upstream test.sh creates this directory before running tests (mkdir -p for each platform). Added the same setup step. --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59cf58d3d..84bf288ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,6 +88,17 @@ jobs: -p:Platform=${{ matrix.platform }} -p:EnableAnalyzers=false + - name: Create App Data Directory + shell: bash + run: | + if [ "$RUNNER_OS" = "Windows" ]; then + mkdir -p "$ProgramData/Prowlarr" + elif [ "$RUNNER_OS" = "macOS" ]; then + mkdir -p ~/Library/Application\ Support/Prowlarr + else + mkdir -p ~/.config/Prowlarr + fi + - name: Unit Tests run: >- dotnet test src/Prowlarr.sln