From cb38f95b7982daec64d15558e4c3ccdec76c92ad Mon Sep 17 00:00:00 2001 From: Hein Date: Sun, 28 Dec 2025 18:46:50 +0200 Subject: [PATCH] Integration tests --- .github/workflows/integration-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index ff09d08..a5624d6 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -84,7 +84,8 @@ jobs: RELSPEC_TEST_PG_CONN: postgres://relspec:relspec_test_password@localhost:5439/relspec_test run: | 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 import ( "context" @@ -108,7 +109,7 @@ jobs: fmt.Printf("SUCCESS! Connected to: %s\n", version) } 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 env: