Skip to content

Commit 485d18b

Browse files
fix(kanon):fixed actions files for postgres
Signed-off-by: Vinay Singh <vinay@verid.id>
1 parent 04905d9 commit 485d18b

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

.github/actions/run-postgres-tests/action.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ inputs:
88
os:
99
description: "Operating system"
1010
required: true
11-
postgres-url:
12-
description: "PostgreSQL connection URL"
13-
required: false
14-
default: "postgres://acapy_test:acapy_test_pass@localhost:5432/acapy_test_db"
1511

1612
runs:
1713
using: "composite"
@@ -87,13 +83,20 @@ runs:
8783
- name: Run Kanon PostgreSQL Tests
8884
shell: bash
8985
env:
90-
POSTGRES_URL: ${{ inputs.postgres-url }}
86+
POSTGRES_HOST: localhost
87+
POSTGRES_PORT: 5432
88+
POSTGRES_USER: acapy_test
89+
POSTGRES_PASSWORD: acapy_test_pass
90+
POSTGRES_DB: acapy_test_db
9191
ENABLE_DBSTORE_TESTS: "1"
9292
LOG_LEVEL: WARNING
9393
run: |
94+
# Construct PostgreSQL URL from components to avoid GitHub secret masking
95+
export POSTGRES_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
96+
9497
echo "========================================="
9598
echo "Running Kanon Integration Tests"
96-
echo "PostgreSQL URL: $POSTGRES_URL"
99+
echo "Database: ${POSTGRES_DB} on ${POSTGRES_HOST}:${POSTGRES_PORT}"
97100
echo "========================================="
98101
99102
poetry run pytest \
@@ -126,13 +129,20 @@ runs:
126129
- name: Run DBStore PostgreSQL Integration Tests
127130
shell: bash
128131
env:
129-
POSTGRES_URL: ${{ inputs.postgres-url }}
132+
POSTGRES_HOST: localhost
133+
POSTGRES_PORT: 5432
134+
POSTGRES_USER: acapy_test
135+
POSTGRES_PASSWORD: acapy_test_pass
136+
POSTGRES_DB: acapy_test_db
130137
ENABLE_DBSTORE_TESTS: "1"
131138
LOG_LEVEL: WARNING
132139
run: |
140+
# Construct PostgreSQL URL from components to avoid GitHub secret masking
141+
export POSTGRES_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
142+
133143
echo "========================================="
134144
echo "Running DBStore PostgreSQL Integration Tests"
135-
echo "PostgreSQL URL: $POSTGRES_URL"
145+
echo "Database: ${POSTGRES_DB} on ${POSTGRES_HOST}:${POSTGRES_PORT}"
136146
echo "========================================="
137147
138148
poetry run pytest \

.github/workflows/pr-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ jobs:
5050
with:
5151
python-version: "3.12"
5252
os: "ubuntu-latest"
53-
postgres-url: "postgres://acapy_test:acapy_test_pass@localhost:5432/acapy_test_db"

0 commit comments

Comments
 (0)