Docs: 프로젝트 발표 내용을 README에 반영한다. #141
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: Spotless Check | |
on: [ pull_request ] | |
jobs: | |
spotless: | |
name: Spotless Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo with submodules | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
submodules: true # 서브모듈도 함께 체크아웃 | |
token: ${{secrets.PRIVATE_TOKEN}} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Spotless | |
run: ./gradlew spotlessCheck |