mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-07 12:10:20 +02:00
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:
parent
3f9aca3fe0
commit
67274ab7b5
1 changed files with 11 additions and 0 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue