Skip to content

Commit cffadc3

Browse files
committed
add conn check
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
1 parent f5fa556 commit cffadc3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI on PRs (Splice Contributors)
2+
on: # TODO: replace with main only, once a day
3+
pull_request:
4+
types: [ opened, synchronize, reopened ]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
id-token: write # Required for GCP Workload Identity for failure notifications
12+
contents: read
13+
14+
jobs:
15+
performance_tests:
16+
runs-on: self-hosted-k8s-small
17+
container:
18+
image: postgres:17 # TODO: only necessary for connection check, replace with whatever scala tsets are using
19+
name: Performance Tests
20+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
21+
steps:
22+
- name: Connection check
23+
shell: bash
24+
run: |
25+
echo "Checking connection to Splice services..."
26+
PGPASSWORD="$PERFORMANCE_TESTS_DB_PASSWORD" psql -h"$PERFORMANCE_TESTS_DB_HOST" -U"$PERFORMANCE_TESTS_DB_USER" -dcantonnet -c '\l' || (echo "Connection to DB failed" && exit 1)

0 commit comments

Comments
 (0)