Skip to content

Style: 코드 포맷팅 변경 #29

Style: 코드 포맷팅 변경

Style: 코드 포맷팅 변경 #29

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: 환경 변수 설정
run: echo "${{ secrets.ENV_PROPERTIES }}" > ./.env
- 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