[๋ฐฐํฌ] v0.6.0(PR#86,PR#87,PR#90) #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mealkitary Test Coverage Automation | |
permissions: | |
checks: write | |
pull-requests: write | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
- 'main' | |
jobs: | |
code-coverage: | |
if: ${{ contains(github.event.*.labels.*.name, format('run{0} gradle test', ':')) }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Firebase ์ํฌ๋ฆฟ ์์ฑ | |
run: | | |
echo ${{ secrets.ENCODED_FIREBASE_JSON }} | base64 -d > ./mealkitary-infrastructure/adapter-firebase-notification/src/main/resources/firebase.json | |
- name: JDK 11 ๊ตฌ์ฑ | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Gradlew wrapper ์คํ ๊ถํ ๋ถ์ฌ | |
run: chmod +x gradlew | |
- name: Gradle ํ ์คํธ | |
run: ./gradlew test | |
- name: ํ ์คํธ ๊ฒฐ๊ณผ ์ถ๋ ฅ | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: ${{ always() }} | |
with: | |
files: | | |
./mealkitary-api/build/test-results/**/*.xml | |
./mealkitary-domain/build/test-results/**/*.xml | |
./mealkitary-application/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-persistence-spring-data-jpa/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-paymentgateway-tosspayments/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-firebase-notification/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-business-registration-number-validator/simple-brn-validator/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-business-registration-number-validator/open-api-brn-validator/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-address-resolver/simple-address-resolver/build/test-results/**/*.xml | |
./mealkitary-infrastructure/adapter-address-resolver/kakao-api-address-resolver/build/test-results/**/*.xml | |
- name: Jacoco Coverage ๋ฆฌํฌํธ ์ ์ก | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: | | |
./mealkitary-api/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-domain/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-application/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-persistence-spring-data-jpa/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-paymentgateway-tosspayments/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-firebase-notification/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-business-registration-number-validator/simple-brn-validator/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-business-registration-number-validator/open-api-brn-validator/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-address-resolver/simple-address-resolver/build/reports/jacoco/test/jacocoTestReport.xml, | |
./mealkitary-infrastructure/adapter-address-resolver/kakao-api-address-resolver/build/reports/jacoco/test/jacocoTestReport.xml | |
name: mealkitary-codecov | |
verbose: true |