Skip to content

[SETTING/#1] 프로젝트 기초 세팅을 진행합니다. #1

[SETTING/#1] 프로젝트 기초 세팅을 진행합니다.

[SETTING/#1] 프로젝트 기초 세팅을 진행합니다. #1

Workflow file for this run

name: Orbit CI
on:
pull_request:
branches: [develop]
paths:
- 'app/**'
- 'build.gradle'
- '**/*.kt'
jobs:
build:
runs-on: ubuntu-latest
steps:
# Gradle Cache
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties', '**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Checkout Code
- name: Checkout the code
uses: actions/checkout@v4
# Setup JDK
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
# Setup Android SDK
- name: Setup Android SDK
uses: android-actions/setup-android@v3
# Grant Execute Permission
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Decode google-services.json
- name: Decode google-services.json
env:
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }}
run: echo $FIREBASE_SECRET > app/google-services.json
# Add Local Properties
- name: Access Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
run: echo "base.url=\"$BASE_URL\"" >> local.properties
# Run Lint and Build
- name: Run lint and build
run: ./gradlew ktlintCheck assembleDebug