refactor: 디자인 시스템 이미지 수정 및 적용 #184
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: ktlint and build | |
on: | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
name: Check Code Quality and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Gradle Caching | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Decode Google Services JSON | |
env: | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: echo $GOOGLE_SERVICES_JSON > ./app/google-services.json | |
- name: Configure local.properties | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
POST_URL: ${{ secrets.POST_URL }} | |
X_NCP_CLOVASTUDIO_API_KEY: ${{ secrets.X_NCP_CLOVASTUDIO_API_KEY }} | |
X_NCP_APIGW_API_KEY: ${{ secrets.X_NCP_APIGW_API_KEY }} | |
X_NCP_CLOVASTUDIO_REQUEST_ID: ${{ secrets.X_NCP_CLOVASTUDIO_REQUEST_ID }} | |
run: | | |
echo "base_url=${BASE_URL}" >> local.properties | |
echo "post_url=${POST_URL}" >> local.properties | |
echo "X-NCP-CLOVASTUDIO-API-KEY=${X_NCP_CLOVASTUDIO_API_KEY}" >> local.properties | |
echo "X-NCP-APIGW-API-KEY=${X_NCP_APIGW_API_KEY}" >> local.properties | |
echo "X-NCP-CLOVASTUDIO-REQUEST-ID=${X_NCP_CLOVASTUDIO_REQUEST_ID}" >> local.properties | |
- name: ktlint Check | |
uses: ScaCap/action-ktlint@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
android: true | |
fail_on_error: true | |
level: warning | |
- name: Build with Gradle | |
run: ./gradlew build |