Skip to content

Fix: 코드 스멜 수정 #22

Fix: 코드 스멜 수정

Fix: 코드 스멜 수정 #22

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