File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change 6565 if : matrix.os == 'macos-latest'
6666 run : brew install postgresql
6767
68- - name : Init PostgreSQL (Windows)
68+ - name : Install PostgreSQL (Windows)
6969 if : matrix.os == 'windows-latest'
70- run : |
71- echo "Searching for PostgreSQL installation..."
72- CANDIDATES=(
73- "/c/Program Files/PostgreSQL/16/bin"
74- "/c/Program Files/PostgreSQL/15/bin"
75- "/c/Program Files/PostgreSQL/14/bin"
76- "/c/Program Files/PostgreSQL/13/bin"
77- )
78-
79- FOUND=""
80-
81- for path in "${CANDIDATES[@]}"; do
82- if [ -x "$path/psql.exe" ]; then
83- FOUND="$path"
84- break
85- fi
86- done
87-
88- if [ -n "$FOUND" ]; then
89- echo "PostgreSQL binaries found at: $FOUND"
90- echo "PGBIN=$FOUND" >> "$GITHUB_ENV"
91- echo "PSQL=$FOUND/psql.exe" >> "$GITHUB_ENV"
92- "$FOUND/psql.exe" --version
93- else
94- echo "No PostgreSQL installation found on this runner."
95- echo "PGBIN=" >> "$GITHUB_ENV"
96- fi
70+ run : choco install postgresql --yes --no-progress
9771
9872 - name : Install Poetry
9973 uses : snok/install-poetry@v1
You can’t perform that action at this time.
0 commit comments