|
8 | 8 | os: |
9 | 9 | description: "Operating system" |
10 | 10 | 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" |
15 | 11 |
|
16 | 12 | runs: |
17 | 13 | using: "composite" |
@@ -87,13 +83,20 @@ runs: |
87 | 83 | - name: Run Kanon PostgreSQL Tests |
88 | 84 | shell: bash |
89 | 85 | 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 |
91 | 91 | ENABLE_DBSTORE_TESTS: "1" |
92 | 92 | LOG_LEVEL: WARNING |
93 | 93 | 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 | +
|
94 | 97 | echo "=========================================" |
95 | 98 | echo "Running Kanon Integration Tests" |
96 | | - echo "PostgreSQL URL: $POSTGRES_URL" |
| 99 | + echo "Database: ${POSTGRES_DB} on ${POSTGRES_HOST}:${POSTGRES_PORT}" |
97 | 100 | echo "=========================================" |
98 | 101 |
|
99 | 102 | poetry run pytest \ |
@@ -126,13 +129,20 @@ runs: |
126 | 129 | - name: Run DBStore PostgreSQL Integration Tests |
127 | 130 | shell: bash |
128 | 131 | 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 |
130 | 137 | ENABLE_DBSTORE_TESTS: "1" |
131 | 138 | LOG_LEVEL: WARNING |
132 | 139 | 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 | +
|
133 | 143 | echo "=========================================" |
134 | 144 | echo "Running DBStore PostgreSQL Integration Tests" |
135 | | - echo "PostgreSQL URL: $POSTGRES_URL" |
| 145 | + echo "Database: ${POSTGRES_DB} on ${POSTGRES_HOST}:${POSTGRES_PORT}" |
136 | 146 | echo "=========================================" |
137 | 147 |
|
138 | 148 | poetry run pytest \ |
|
0 commit comments