-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'an/develop' into an/release1.0.3
- Loading branch information
Showing
169 changed files
with
3,985 additions
and
1,266 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,81 @@ | ||
name: Add Labels Action | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
description: "Add labels to a pull request based on its title" | ||
|
||
inputs: | ||
title: | ||
description: "title of the pull request or issue" | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Input title | ||
shell: bash | ||
run: | | ||
echo "Input Title: ${{ inputs.title }}" | ||
- name: add FEAT ✨ labels | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'FEAT') }} | ||
if: ${{ contains(inputs.title, 'FEAT') }} | ||
with: | ||
labels: | | ||
AN_FEAT ✨ | ||
- name: add UI 🎨 labels | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'UI') }} | ||
if: ${{ contains(inputs.title, 'UI') }} | ||
with: | ||
labels: | | ||
AN_UI 🎨 | ||
- name: add REFACTOR ✍️ label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'REFACTOR') }} | ||
if: ${{ contains(inputs.title, 'REFACTOR') }} | ||
with: | ||
labels: | | ||
AN_REFACTOR ✍️ | ||
- name: add FIX 🐛 label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'FIX') }} | ||
if: ${{ contains(inputs.title, 'FIX') }} | ||
with: | ||
labels: | | ||
AN_FIX 🐛 | ||
- name: add CI/CD 🤖 label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'CI') || contains(github.event.pull_request.title, 'CD') }} | ||
if: ${{ contains(inputs.title, 'CI') || contains(inputs.title, 'CD') }} | ||
with: | ||
labels: | | ||
AN_CI/CD 🤖 | ||
- name: add CONFIG 🧭 label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ contains(github.event.pull_request.title, 'CONFIG') }} | ||
if: ${{ contains(inputs.title, 'CONFIG') }} | ||
with: | ||
labels: | | ||
AN_CONFIG 🧭 | ||
- name: Extract Version Name | ||
shell: bash | ||
env: | ||
title: ${{ inputs.title }} | ||
run: | | ||
version=$(echo '${{ env.title }}' | grep -oP '\d+\.\d+\.\d+') | ||
if [ -z "$version" ]; then | ||
echo "No version found in the title." | ||
echo "version=none" >> $GITHUB_ENV | ||
else | ||
echo "version=v$version" >> $GITHUB_ENV | ||
fi | ||
- name: Add version 🏷️ label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ env.version != 'none' }} # 버전이 존재할 때만 실행 | ||
with: | ||
labels: | | ||
${{ env.version }} 🏷️ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'ktLint Check' | ||
|
||
description: 'Run ktLint Check using Gradle' | ||
|
||
inputs: | ||
POKE_BASE_URL: | ||
description: 'Base URL for local.properties' | ||
required: true | ||
|
||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Create Local Properties | ||
shell: bash | ||
run: touch local.properties | ||
working-directory: ./android | ||
|
||
- name: Access Local Properties | ||
shell: bash | ||
run: | | ||
echo POKE_BASE_URL=\"${{ inputs.POKE_BASE_URL }}\" >> local.properties | ||
working-directory: ./android | ||
|
||
- name: Grant execute permission for gradlew | ||
shell: bash | ||
run: chmod +x gradlew | ||
working-directory: ./android | ||
|
||
- name: Lint Check | ||
shell: bash | ||
run: ./gradlew ktlintCheck | ||
working-directory: ./android |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: 'Test Alpha Unit Test' | ||
|
||
description: 'Run Alpha Unit Tests using Gradle' | ||
|
||
inputs: | ||
POKE_BASE_URL: | ||
description: 'Base URL for local.properties' | ||
required: true | ||
GOOGLE_SERVICES_ALPHA: | ||
description: 'Google Services JSON for alpha build' | ||
required: true | ||
GOOGLE_SERVICES_BETA: | ||
description: 'Google Services JSON for beta build' | ||
required: true | ||
GOOGLE_SERVICES: | ||
description: 'Google Services JSON for release' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Gradle cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Create Google-Services.json | ||
shell: bash | ||
run: | | ||
touch ./android/app/src/debug/google-services.json | ||
touch ./android/app/src/alpha/google-services.json | ||
touch ./android/app/src/beta/google-services.json | ||
mkdir ./android/app/src/release | ||
touch ./android/app/src/release/google-services.json | ||
echo ${{ inputs.GOOGLE_SERVICES_ALPHA }} >> ./android/app/src/debug/google-services.json | ||
echo ${{ inputs.GOOGLE_SERVICES_ALPHA }} >> ./android/app/src/alpha/google-services.json | ||
echo ${{ inputs.GOOGLE_SERVICES_BETA }} >> ./android/app/src/beta/google-services.json | ||
echo ${{ inputs.GOOGLE_SERVICES }} >> ./android/app/src/release/google-services.json | ||
- name: Create Local Properties | ||
shell: bash | ||
run: touch local.properties | ||
working-directory: ./android | ||
|
||
- name: Access Local Properties | ||
shell: bash | ||
run: | | ||
echo POKE_BASE_URL=\"${{ inputs.POKE_BASE_URL }}\" >> local.properties | ||
working-directory: ./android | ||
|
||
- name: Grant execute permission for gradlew | ||
shell: bash | ||
run: chmod +x gradlew | ||
working-directory: ./android | ||
|
||
- name: Run Alpha Unit Tests | ||
shell: bash | ||
run: ./gradlew testAlphaUnitTest | ||
working-directory: ./android |
Oops, something went wrong.