Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

#47 jacoco badge 생성 #73

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 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
68 changes: 38 additions & 30 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,44 @@ jobs:
build:

runs-on: ubuntu-latest
env :
env:
working-directory: ./

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}
- name: Build with Gradle
env:
MYSQL_URL: ${{ secrets.MYSQL_URL }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_DBNAME: ${{ secrets.MYSQL_DBNAME }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_USERNAME: ${{ secrets.MYSQL_USERNAME }}
AUTHORIZATION: ${{ secrets.AUTHORIZATION }}
run: ./gradlew build
working-directory: ${{ env.working-directory }}
- name: build result to slack
uses: 8398a7/action-slack@v3
with:
status: ${{job.status}}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
author_name: Door rush CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}
- name: Build with Gradle
env:
MYSQL_URL: ${{ secrets.MYSQL_URL }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_DBNAME: ${{ secrets.MYSQL_DBNAME }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_USERNAME: ${{ secrets.MYSQL_USERNAME }}
AUTHORIZATION: ${{ secrets.AUTHORIZATION }}
run: ./gradlew build
working-directory: ${{ env.working-directory }}
- name: build result to slack
uses: 8398a7/action-slack@v3
with:
status: ${{job.status}}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
author_name: Door rush CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required

- name: Generate JaCoCo Badge
id: jacoco
uses: cicirello/[email protected]
with:
badges-directory: badges
generate-branches-badge: true
jacoco-csv-file: ./build/customJacocoReportDir/test/jacocoTestReport.csv
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![coverage](../badges/jacoco.svg)](https://github.com/f-lab-edu/DoorRush/actions/workflows/gradle.yml)
# DoorRush

---
Expand Down Expand Up @@ -47,7 +48,6 @@
## 📌 **기술적 이슈와 해결 과정**

- [외부 API가 응답 코드조차 보낼 수 없는 장애가 발생했다면? Circuit Breaker Pattern로 해결하기](https://github.com/f-lab-edu/DoorRush/issues/67) <br>
- [인증 기능에는 어떤 기술을 사용해야 할까?](https://github.com/ypr821/TIL/blob/main/2022_01/%EC%9D%B8%EC%A6%9D(Authentication)%EA%B3%BC_%EC%9D%B8%EA%B0%80(Authorization).md) <br>
- [인증 관련 보안 이슈](https://github.com/ypr821/TIL/blob/main/2022_01/%EC%9E%90%EB%8F%99%EB%A1%9C%EA%B7%B8%EC%9D%B8%EA%B8%B0%EB%8A%A5_%EB%B3%B4%EC%95%88%EC%9D%B4%EC%8A%88_%EA%B3%A0%EB%AF%BC.md) <br>
- [로그인 체크는 어떻게 하면 좋을까?](https://dev-promise.tistory.com/entry/%EB%A1%9C%EA%B7%B8%EC%9D%B8-%EC%B2%B4%ED%81%AC%EB%A5%BC-%EC%9C%84%ED%95%9C-%EA%B8%B0%EC%88%A0%EC%A0%81-%EA%B3%A0%EB%AF%BC)
- <a href="https://yeoonjae.tistory.com/entry/Project-Github-action%EC%9D%84-%ED%99%9C%EC%9A%A9%ED%95%98%EC%97%AC-PR%EC%8B%9C-%EC%9E%90%EB%8F%99-Build-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0-CI%EC%84%A4%EC%A0%95?category=1023285">Github Action을 통해 CI 설정하기</a>
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ jacocoTestReport {
}
reports {
xml.required = false
csv.required = false
csv.required = true
html.required = true
csv.enabled true
}

finalizedBy jacocoTestCoverageVerification
Expand Down