Skip to content

Commit

Permalink
๐Ÿ”จ [Refactor] Multi module ์ ์šฉ (#587)
Browse files Browse the repository at this point in the history
Co-authored-by: yoahn <[email protected]>
Co-authored-by: wken5577 <[email protected]>
Co-authored-by: Hyunkyu Lee <[email protected]>
Co-authored-by: AYoungSn <[email protected]>
  • Loading branch information
5 people authored Feb 23, 2024
1 parent 62f19e4 commit 900aa36
Show file tree
Hide file tree
Showing 607 changed files with 4,013 additions and 4,248 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/test-code-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,35 @@ jobs:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: ๏ธ๐Ÿ‘ถ Unit Test with Gradle
run: ./gradlew --console verbose clean unitTestCoverage
- name: mv for separate report folder
run: mv ./build/reports/jacoco/test ./build/reports/jacoco/unitTest
- name: mv for separate report name
run: mv ./build/reports/jacoco/unitTest/jacocoTestReport.xml ./build/reports/jacoco/unitTest/unitTestReport.xml
run: ./gradlew --console verbose clean unitTestCoverage unitTestCoverageReport -x test

# - name: mv for separate report folder
# run: mv ./gg-pingpong-utils/build/reports/jacoco/unitTestCoverageReport ./build/reports/jacoco/unitTest

# - name: mv for separate report name
# run: mv ./build/reports/jacoco/unitTest/jacocoTestReport.xml ./build/reports/jacoco/unitTest/unitTestReport.xml

- name: ๐Ÿ“ฒ Upload unitTest coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/reports/jacoco/unitTest/unitTestReport.xml
files: ./gg-pingpong-utils/build/reports/jacoco/unitTestCoverageReport/unitTestCoverageReport.xml
flags: unitTest
name: codecov-unit
verbose: true

- name: ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Integration Test with Gradle
run: ./gradlew --console verbose clean integrationTestCoverage
run: ./gradlew --console verbose clean integrationTestCoverage integrationTestCoverageReport -x test

- name: ๐Ÿ“ฒ Upload integrationTest coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/reports/jacoco/test/jacocoTestReport.xml
files: ./gg-pingpong-utils/build/reports/jacoco/integrationTestCoverageReport/integrationTestCoverageReport.xml
flags: integrationTest
name: codecov-integration
verbose: true
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
src/main/resources/application.yml
src/main/resources/application-local.yml
src/main/resources/application-main.yml
src/main/resources/application-test.yml
gg-pingpong-api/src/main/resources/application.yml
.DS_Store
src/test/resources/application.yml
src/test/resources/application-local.yml
python
/logs

Expand Down Expand Up @@ -54,4 +49,4 @@ pingping.pem
./logs/*

### git commit message convention file ###
.gitmessage.txt
.gitmessage.txt
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM openjdk:11-jdk

WORKDIR /app

ARG JAR_FILE=build/libs/server-42gg.jar
ARG JAR_FILE=gg-pingpong-api/build/libs/gg-pingpong-api-42gg.jar

COPY ${JAR_FILE} .

Expand Down
Loading

0 comments on commit 900aa36

Please sign in to comment.