Fix: 코드 스멜 수정 #23
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: Pull Request Test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: read-all | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Git Checkout | |
uses: actions/[email protected] | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
application: | |
- 'build.gradle' | |
- 'src/**' | |
- name: JDK 설치 | |
if: steps.changes.outputs.application == 'true' | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: 'gradle' | |
- name: Gradle Build | |
if: steps.changes.outputs.application == 'true' | |
run: | | |
chmod +x ./gradlew | |
./gradlew build --parallel | |
- name: Coverage Report | |
if: steps.changes.outputs.application == 'true' | |
uses: madrapps/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Code Coverage | |
update-comment: true | |
min-coverage-overall: 30 | |
min-coverage-changed-files: 30 | |
paths: | | |
${{ github.workspace }}/**/build/jacoco/jacoco.xml | |
style-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/[email protected] | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
application: | |
- 'build.gradle' | |
- 'src/**' | |
- name: JDK 설치 | |
if: steps.changes.outputs.application == 'true' | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: 'gradle' | |
- name: Style Check | |
if: steps.changes.outputs.application == 'true' | |
run: | | |
chmod +x ./gradlew | |
./gradlew spotlessCheck |