hotfix: 약속방 로그가 뜨지 않는 문제 해결 #9
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: backend-ci-dev | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- backend/** | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Clean And Test With Gradle | |
run: ./gradlew clean test | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: ${{ github.workspace }}/backend/build/test-results/**/*.xml | |
- name: JUnit Report Action | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
report_paths: ${{ github.workspace }}/backend/build/test-results/**/*.xml | |
- name: Report test Coverage to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
title: 📝 Test Coverage Report | |
paths: ${{ github.workspace }}/backend/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 | |
update-comment: true |