From a56b11d8d943d03b16b23aef3d6aa96f5c7f45cb Mon Sep 17 00:00:00 2001 From: strailov Date: Fri, 14 Aug 2026 11:42:15 +0300 Subject: [PATCH 1/3] add verify postgre action for 1.0 Signed-off-by: strailov --- .github/workflows/reusable_workflow_verify.yaml | 13 +++++++++++++ .github/workflows/verify-postgresql.yaml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/verify-postgresql.yaml diff --git a/.github/workflows/reusable_workflow_verify.yaml b/.github/workflows/reusable_workflow_verify.yaml index c95b7e1ee9..612cbb2e3d 100644 --- a/.github/workflows/reusable_workflow_verify.yaml +++ b/.github/workflows/reusable_workflow_verify.yaml @@ -33,6 +33,19 @@ jobs: ports: - 15672:15672 - 5672:5672 + postgresql: + image: postgres:16.5 + env: + POSTGRES_DB: hawkbit + POSTGRES_USER: postgres + POSTGRES_PASSWORD: admin + options: >- + --health-cmd "pg_isready -d hawkbit -U postgres" + --health-interval 20s + --health-timeout 5s + --health-retries 10 + ports: + - 5432:5432 steps: - name: Parameters diff --git a/.github/workflows/verify-postgresql.yaml b/.github/workflows/verify-postgresql.yaml new file mode 100644 index 0000000000..85d8e73e8a --- /dev/null +++ b/.github/workflows/verify-postgresql.yaml @@ -0,0 +1,15 @@ +name: Verify (PostgreSQL) + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + verify-postgresql: + uses: ./.github/workflows/reusable_workflow_verify.yaml + with: + repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} + maven_properties: '-Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit -Dspring.datasource.username=postgres -Dspring.datasource.password=admin' From 2d8c3ed186f14f474428ed8ab73dfac13e72519a Mon Sep 17 00:00:00 2001 From: strailov Date: Fri, 14 Aug 2026 11:44:09 +0300 Subject: [PATCH 2/3] add also postgre + hibernate Signed-off-by: strailov --- .../workflows/verify-hibernate-postgresql.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/verify-hibernate-postgresql.yaml diff --git a/.github/workflows/verify-hibernate-postgresql.yaml b/.github/workflows/verify-hibernate-postgresql.yaml new file mode 100644 index 0000000000..96138412f7 --- /dev/null +++ b/.github/workflows/verify-hibernate-postgresql.yaml @@ -0,0 +1,15 @@ +name: Verify (Hibernate + PostgreSQL) + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + verify-hibernate-postgresql: + uses: ./.github/workflows/reusable_workflow_verify.yaml + with: + repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} + maven_properties: '-Djpa.vendor=hibernate -Dlogging.level.org.hibernate.collection.spi.AbstractPersistentCollection=ERROR -Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit -Dspring.datasource.username=postgres -Dspring.datasource.password=admin' From 0260b72e281ddf507f17953a8c6fe9224da4c3a2 Mon Sep 17 00:00:00 2001 From: strailov Date: Fri, 14 Aug 2026 13:58:48 +0300 Subject: [PATCH 3/3] Add stringtype=unspecified Signed-off-by: strailov --- .github/workflows/verify-hibernate-postgresql.yaml | 2 +- .github/workflows/verify-postgresql.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify-hibernate-postgresql.yaml b/.github/workflows/verify-hibernate-postgresql.yaml index 96138412f7..5ec4498d01 100644 --- a/.github/workflows/verify-hibernate-postgresql.yaml +++ b/.github/workflows/verify-hibernate-postgresql.yaml @@ -12,4 +12,4 @@ jobs: with: repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} - maven_properties: '-Djpa.vendor=hibernate -Dlogging.level.org.hibernate.collection.spi.AbstractPersistentCollection=ERROR -Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit -Dspring.datasource.username=postgres -Dspring.datasource.password=admin' + maven_properties: '-Djpa.vendor=hibernate -Dlogging.level.org.hibernate.collection.spi.AbstractPersistentCollection=ERROR -Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit?stringtype=unspecified -Dspring.datasource.username=postgres -Dspring.datasource.password=admin' diff --git a/.github/workflows/verify-postgresql.yaml b/.github/workflows/verify-postgresql.yaml index 85d8e73e8a..20b0e9b3d7 100644 --- a/.github/workflows/verify-postgresql.yaml +++ b/.github/workflows/verify-postgresql.yaml @@ -12,4 +12,4 @@ jobs: with: repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} - maven_properties: '-Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit -Dspring.datasource.username=postgres -Dspring.datasource.password=admin' + maven_properties: '-Dspring.jpa.database=POSTGRESQL -Dspring.datasource.url=jdbc:postgresql://localhost:5432/hawkbit?stringtype=unspecified -Dspring.datasource.username=postgres -Dspring.datasource.password=admin'