Add verify with Postgre (#3005)
* Add verify with Postgre Signed-off-by: strailov <Stanislav.Trailov@bosch.io> * make them only on trigger manually Signed-off-by: strailov <Stanislav.Trailov@bosch.io> --------- Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
This commit is contained in:
committed by
GitHub
parent
8473212f59
commit
f2edc36e11
13
.github/workflows/reusable_workflow_verify.yaml
vendored
13
.github/workflows/reusable_workflow_verify.yaml
vendored
@@ -33,6 +33,19 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 15672:15672
|
- 15672:15672
|
||||||
- 5672:5672
|
- 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:
|
steps:
|
||||||
- name: Parameters
|
- name: Parameters
|
||||||
|
|||||||
15
.github/workflows/verify-hibernate-postgresql.yaml
vendored
Normal file
15
.github/workflows/verify-hibernate-postgresql.yaml
vendored
Normal file
@@ -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'
|
||||||
15
.github/workflows/verify-postgresql.yaml
vendored
Normal file
15
.github/workflows/verify-postgresql.yaml
vendored
Normal file
@@ -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'
|
||||||
Reference in New Issue
Block a user