Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull Request Build Check

on:
pull_request:
branches:
- "*"

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-disabled: true

- name: Build without tests
run: |
cd customer-service
./gradlew clean build -x test
2 changes: 2 additions & 0 deletions customer-service/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ out/

### VS Code ###
.vscode/

**/src/main/resources/application-*.yml
2 changes: 2 additions & 0 deletions customer-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ ENV DB_PORT=3306
ENV DB_NAME=db_name_placeholder
ENV DB_USERNAME=db_user_placeholder
ENV DB_PASSWORD=db_password_placeholder
ENV ALADIN_KEY=placeholder
ENV KOFIC_KEY=plcaeholder

ENTRYPOINT ["java", "-jar", "app.jar"]
1 change: 1 addition & 0 deletions customer-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'com.mysql:mysql-connector-j'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.1'
}

tasks.named('test') {
Expand Down
5 changes: 5 additions & 0 deletions customer-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ spring:
defer-datasource-initialization: true
show-sql: true
open-in-view: false

aladin:
key: ${ALADIN_KEY}
kofic:
key: ${KOFIC_KEY}
Loading