This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 66ff58b ci: test Java against PostgreSQL (#614)
66ff58b is described below
commit 66ff58bddfacd52aa6a0404b020aa8e2e9e85c86
Author: David Li <[email protected]>
AuthorDate: Fri Apr 28 10:15:08 2023 +0900
ci: test Java against PostgreSQL (#614)
Fixes #612.
---
.github/workflows/java.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml
index e4ec0c9..2954b9e 100644
--- a/.github/workflows/java.yml
+++ b/.github/workflows/java.yml
@@ -43,6 +43,19 @@ jobs:
strategy:
matrix:
java: ['8', '11']
+ services:
+ postgres:
+ image: postgres
+ env:
+ POSTGRES_DB: postgres
+ POSTGRES_PASSWORD: password
+ options: >-
+ --health-cmd pg_isready
+ --health-interval 10s
+ --health-timeout 5s
+ --health-retries 5
+ ports:
+ - 5432:5432
steps:
- uses: actions/checkout@v3
with:
@@ -60,6 +73,9 @@ jobs:
- name: Build/Test
env:
ADBC_SQLITE_FLIGHTSQL_URI: "grpc+tcp://localhost:8080"
+ ADBC_JDBC_POSTGRESQL_URL: "localhost:5432/postgres"
+ ADBC_JDBC_POSTGRESQL_USER: "postgres"
+ ADBC_JDBC_POSTGRESQL_PASSWORD: "password"
run: |
cd java
mvn install