Jacoco Test Actions 수정 #2
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 Tests on Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
project-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📦 Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🖼️ Install ImageMagick | |
run: sudo apt-get install -y imagemagick | |
- name: 🏗️ Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: 🎟️ Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: 🧪 Spring Boot Test | |
run: ./gradlew clean test | |
- name: Add coverage to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
title: 📄 Jacoco Coverage Report | |
paths: ${{ github.workspace }}/**/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 |