Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 프로덕션 배포 #127

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.{kt,kts}]
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ktlint_function_naming_ignore_when_annotated_with = Composable, Test
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "\U0001F41B 버그 제보"
description: 버그를 발견하셨나요?
labels: bug, parent

body:
- type: textarea
id: bug-description
attributes:
label: 버그 설명
placeholder: 버그에 대해 설명해주세요.

- type: textarea
id: expected-behavior
attributes:
label: 예상 동작
placeholder: 예상했던 동작에 대해 설명해주세요.

- type: textarea
id: actual-behavior
attributes:
label: 실제 동작
placeholder: 실제로 일어난 동작을 설명해주세요.

- type: textarea
id: steps-to-reproduce
attributes:
label: 재현 방법
placeholder: 순서대로 설명해주세요.

- type: textarea
id: screenshot
attributes:
label: 스크린샷 첨부
placeholder: 스크린샷이 있으면 첨부해주세요.

- type: textarea
id: environment
attributes:
label: 환경
placeholder: 디바이스, 운영체제, 앱 버전 등을 명시해주세요.

- type: textarea
id: additional-info
attributes:
label: 비고
placeholder: 추가적인 정보를 기입해주세요.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "⚙️ 기능 개발"
description: "개발 시간 🫡"
body:
- type: textarea
attributes:
label: 기능 설명
- type: textarea
attributes:
label: 개발 일정
description: 개발 일정을 적어주세요.
- type: textarea
attributes:
label: 자식 이슈
description: 현재 이슈의 하위 이슈를 링크해주세요.
description: 개발할 기능에 대한 설명을 적어주세요.
- type: textarea
attributes:
label: 부가 설명
description: 기타 부가적인 설명을 적어주세요.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 관련 이슈번호

<br/> close #

## 작업 사항

<br/>

## 기타 사항

<br/>
61 changes: 61 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Android CI

on:
pull_request:
branches: [ "main", "develop" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Gradle 캐싱: 빌드 시간과 네트워크 통신을 줄이기 위해 의존성 패키지들을 캐싱하여 재사용
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Access Google Client Id
env:
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
run: |
echo "GOOGLE_CLIENT_ID=\"$GOOGLE_CLIENT_ID\"" >> local.properties

- name: Access YOUTH POLICY API KEY
env:
YOUTH_POLICY_API_KEY: ${{ secrets.YOUTH_POLICY_API_KEY }}
run: |
echo "YOUTH_POLICY_API_KEY=\"YOUTH_POLICY_API_KEY\"" >> local.properties

- name: Access BaseUrl
env:
YOUTH_POLICY_API_KEY: ${{ secrets.BASE_URL }}
run: |
echo "BASE_URL=\"BASE_URL\"" >> local.properties

- name: Create google-services
run: |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Run test
run: ./gradlew test --parallel

- name: Run ktlint
run: ./gradlew ktlintCheck
59 changes: 59 additions & 0 deletions .github/workflows/build_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Android CI

on:
push:
branches: ["develop"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Gradle 캐싱: 빌드 시간과 네트워크 통신을 줄이기 위해 의존성 패키지들을 캐싱하여 재사용
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Access Google Client Id
env:
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
run: |
echo "GOOGLE_CLIENT_ID=\"$GOOGLE_CLIENT_ID\"" >> local.properties

- name: Access YOUTH POLICY API KEY
env:
YOUTH_POLICY_API_KEY: ${{ secrets.YOUTH_POLICY_API_KEY }}
run: |
echo "YOUTH_POLICY_API_KEY=\"YOUTH_POLICY_API_KEY\"" >> local.properties

- name: Access BaseUrl
env:
YOUTH_POLICY_API_KEY: ${{ secrets.BASE_URL }}
run: |
echo "BASE_URL=\"BASE_URL\"" >> local.properties

- name: Create google-services
run: |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Build with Gradle
run: ./gradlew build

Loading
Loading