Integration tests
Some checks failed
CI / Test (1.24) (push) Successful in -25m39s
CI / Test (1.25) (push) Successful in -25m36s
CI / Build (push) Successful in -26m0s
CI / Lint (push) Successful in -25m52s
Integration Tests / Integration Tests (push) Failing after -25m28s

This commit is contained in:
2025-12-28 18:46:50 +02:00
parent 196d87bc29
commit cb38f95b79

View File

@@ -84,7 +84,8 @@ jobs:
RELSPEC_TEST_PG_CONN: postgres://relspec:relspec_test_password@localhost:5439/relspec_test RELSPEC_TEST_PG_CONN: postgres://relspec:relspec_test_password@localhost:5439/relspec_test
run: | run: |
echo "Testing connection using Go (same as integration tests will use)..." echo "Testing connection using Go (same as integration tests will use)..."
cat > /tmp/test_conn.go << 'EOF' mkdir -p /tmp/testconn
cat > /tmp/testconn/test_conn.go << 'EOF'
package main package main
import ( import (
"context" "context"
@@ -108,7 +109,7 @@ jobs:
fmt.Printf("SUCCESS! Connected to: %s\n", version) fmt.Printf("SUCCESS! Connected to: %s\n", version)
} }
EOF EOF
cd /tmp && go mod init testconn && go get github.com/jackc/pgx/v5 && go run test_conn.go cd /tmp/testconn && go mod init testconn && go mod tidy && go run test_conn.go
- name: Run integration tests - name: Run integration tests
env: env: