Skip to content

[SAMBAD-219]-์ปค๋ฒ„๋ฆฌ์ง€ ์—…๋ฐ์ดํŠธ ํ…Œ์ŠคํŠธ #112

[SAMBAD-219]-์ปค๋ฒ„๋ฆฌ์ง€ ์—…๋ฐ์ดํŠธ ํ…Œ์ŠคํŠธ

[SAMBAD-219]-์ปค๋ฒ„๋ฆฌ์ง€ ์—…๋ฐ์ดํŠธ ํ…Œ์ŠคํŠธ #112

Workflow file for this run

name: Check test coverage and merge
on:
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "GitHub ์—์„œ ๋ ˆํฌ ๋ฐ›์•„์˜ค๊ธฐ"
uses: actions/checkout@v3
- name: "JDK17 ์ค€๋น„ํ•˜๊ธฐ"
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: "Gradle ๊ถŒํ•œ ๋ถ€์—ฌ"
run: chmod +x gradlew
- name: "ํ…Œ์ŠคํŠธ ์‹คํ–‰"
run: ./gradlew test
continue-on-error: true
- name: "ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ ์—…๋กœ๋“œ"
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: ./build/reports/jacoco/test/jacocoTestReport.xml
# - name: Test Coverage Report
# id: jacoco
# uses: madrapps/[email protected]
# with:
# title: Test Coverage Report
# paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
# token: ${{ secrets.GITHUB_TOKEN }}
# min-coverage-overall: 30
# min-coverage-changed-files: 50
- name: Report to CodeCov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/test/jacocoTestReport.xml