diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 0000000..14bacd0 --- /dev/null +++ b/.github/workflows/build-check.yml @@ -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 \ No newline at end of file diff --git a/customer-service/.gitignore b/customer-service/.gitignore index c2065bc..317f9a4 100644 --- a/customer-service/.gitignore +++ b/customer-service/.gitignore @@ -35,3 +35,5 @@ out/ ### VS Code ### .vscode/ + +**/src/main/resources/application-*.yml diff --git a/customer-service/Dockerfile b/customer-service/Dockerfile index 200c93c..de5468f 100644 --- a/customer-service/Dockerfile +++ b/customer-service/Dockerfile @@ -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"] \ No newline at end of file diff --git a/customer-service/build.gradle b/customer-service/build.gradle index 5508973..2accd91 100644 --- a/customer-service/build.gradle +++ b/customer-service/build.gradle @@ -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') { diff --git a/customer-service/src/main/resources/application.yml b/customer-service/src/main/resources/application.yml index 4b4daa5..3dca71d 100644 --- a/customer-service/src/main/resources/application.yml +++ b/customer-service/src/main/resources/application.yml @@ -18,3 +18,8 @@ spring: defer-datasource-initialization: true show-sql: true open-in-view: false + +aladin: + key: ${ALADIN_KEY} +kofic: + key: ${KOFIC_KEY} \ No newline at end of file