Skip to content

Commit da0c923

Browse files
committed
ci: add debugging for permission issue
1 parent fde4f02 commit da0c923

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ jobs:
3636
- name: Run tests
3737
run: |
3838
export PATH="/usr/lib/postgresql/${{ matrix.pg-version }}/bin:$PATH"
39-
# Allow postgres user to write test results
40-
sudo mkdir -p test/results
41-
sudo chown -R postgres:postgres test/
42-
sudo -u postgres make installcheck || (cat test/results/*.diff 2>/dev/null; exit 1)
39+
# Debug: show directory structure and permissions
40+
pwd
41+
ls -la
42+
ls -la test/
43+
id
44+
# Give full permissions to the workspace
45+
sudo chmod -R 777 .
46+
sudo ls -la test/
47+
# Run as postgres user from a directory it can access
48+
sudo -u postgres env PATH="$PATH" make installcheck || (cat test/results/*.diff 2>/dev/null; exit 1)

0 commit comments

Comments
 (0)