Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '110'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
10 changes: 10 additions & 0 deletions target/classes/Logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern>
</encoder>
</appender>
<root level="error">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
2 changes: 2 additions & 0 deletions target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
management.endpoints.web.exposure.include=*
management.metrics.export.influx.step=1s
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
com/pgr301/exam/BankAccountApplication.class
com/pgr301/exam/model/Transaction.class
com/pgr301/exam/model/Account.class
com/pgr301/exam/BankAccountController$AccountNotFoundException.class
com/pgr301/exam/BankAccountController.class
com/pgr301/exam/BankingCoreSystmeService.class
com/pgr301/exam/BackEndException.class
com/pgr301/exam/ReallyShakyBankingCoreSystemService.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/BankAccountController.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/ReallyShakyBankingCoreSystemService.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/model/Transaction.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/BackEndException.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/model/Account.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/BankingCoreSystmeService.java
/home/ec2-user/environment/01-CI-Github-actions/src/main/java/com/pgr301/exam/BankAccountApplication.java