[SAMBAD-249] 질문 활성 및 비활성화 체크 스케줄러 추가, 질문 조회 로직 리팩토링 #138
Workflow file for this run
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: 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/test-results/**/*.xml | |
# - name: Jacoco Report to PR | |
# id: jacoco | |
# uses: madrapps/[email protected] | |
# with: | |
# paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# min-coverage-overall: 40 | |
# min-coverage-changed-files: 40 | |
# title: "Code Coverage" | |
# update-comment: true |