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.
This commit is contained in:
nitrobass24 2026-02-27 23:54:05 -06:00
parent 3f9aca3fe0
commit 67274ab7b5

View file

@ -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