Skip to content

Commit dcab167

Browse files
committed
Adding configuration to run database for tests when building
1 parent e76e931 commit dcab167

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/maven.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
distribution: corretto
2424
cache: maven
2525

26+
- name: Start database
27+
run: docker compose up -d db
28+
2629
- name: Build with Maven
2730
run: mvn -B --no-transfer-progress clean package
2831

docker-compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: moresleep
2+
3+
services:
4+
db:
5+
build:
6+
context: docker/postgres
7+
dockerfile: Dockerfile
8+
ports:
9+
- "5432:5432"

0 commit comments

Comments
 (0)