Compare commits

..

2 Commits

Author SHA1 Message Date
f655f2089e
build: remove H2 database from test dependencies
Some checks failed
Quality Check / Gradle Check (pull_request) Failing after 1m11s
2024-09-25 09:49:00 +02:00
0691e708e8
feat(ci): add PostgreSQL service to workflow configuration 2024-09-25 09:48:53 +02:00
2 changed files with 14 additions and 1 deletions

@ -9,6 +9,20 @@ jobs:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
container: container:
image: "cimg/openjdk:21.0-node" image: "cimg/openjdk:21.0-node"
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: lf8_starter_db
POSTGRES_USER: lf8_starter
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U lf8_starter"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps: steps:
- name: "Checkout" - name: "Checkout"
uses: actions/checkout@v3 uses: actions/checkout@v3

@ -35,7 +35,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-oauth2-client:3.3.4") implementation("org.springframework.boot:spring-boot-starter-oauth2-client:3.3.4")
runtimeOnly("org.postgresql:postgresql") runtimeOnly("org.postgresql:postgresql")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0") implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0")
testImplementation("com.h2database:h2")
} }
tasks.withType<Test> { tasks.withType<Test> {