-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from beomjo/1.0.0/merge-develop-into-main
1.0.0/merge develop into main
- Loading branch information
Showing
194 changed files
with
9,767 additions
and
435 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 |
---|---|---|
@@ -0,0 +1,155 @@ | ||
name: Android CI | ||
|
||
on: | ||
# push: | ||
# branches: [ main, develop ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
|
||
jobs: | ||
android_lint: | ||
name: AndroidLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Clone Submodule | ||
run: git clone https://github.com/beomjo/android-compilation.git | ||
|
||
- name: Run Android Lint | ||
run: ./gradlew lintRelease | ||
|
||
- name: Workflow Failed Notification to Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: github-notification | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: https://user-images.githubusercontent.com/39984656/126071498-60496f8c-4971-4bb1-9609-2cab573c1079.png | ||
SLACK_MESSAGE: '[${{ github.workflow }}.${{ github.action }}] Failed!! :rage:' | ||
SLACK_TITLE: Message | ||
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
|
||
detekt: | ||
name: detekt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Clone Submodule | ||
run: git clone https://github.com/beomjo/android-compilation.git | ||
|
||
- name: Run detekt | ||
run: ./gradlew detekt | ||
|
||
- name: Workflow Failed Notification to Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: github-notification | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: https://user-images.githubusercontent.com/39984656/126071498-60496f8c-4971-4bb1-9609-2cab573c1079.png | ||
SLACK_MESSAGE: '[${{ github.workflow }}.${{ github.action }}] Failed!! :rage:' | ||
SLACK_TITLE: Message | ||
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
|
||
unit_test: | ||
name: UnitTest | ||
needs: [ android_lint, detekt ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Clone Submodule | ||
run: git clone https://github.com/beomjo/android-compilation.git | ||
|
||
- name: Unit Test | ||
run: ./gradlew testDebugUnitTest | ||
|
||
- name: Android Test Report | ||
uses: asadmansr/android-test-report-action@v1.2.0 | ||
if: ${{ always() }} | ||
with: | ||
name: reports | ||
path: app/build/test-results | ||
|
||
- name: Workflow Failed Notification to Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: github-notification | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: https://user-images.githubusercontent.com/39984656/126071498-60496f8c-4971-4bb1-9609-2cab573c1079.png | ||
SLACK_MESSAGE: '[${{ github.workflow }}.${{ github.action }}] Failed!! :rage:' | ||
SLACK_TITLE: Message | ||
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
|
||
build: | ||
name: Build | ||
needs: [ android_lint, detekt, unit_test ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Clone Submodule | ||
run: git clone https://github.com/beomjo/android-compilation.git | ||
|
||
- name: Clean Project | ||
run: ./gradlew clean --stacktrace | ||
|
||
- name: Build AAB | ||
run: ./gradlew bundleRelease --stacktrace | ||
|
||
- name: Workflow Failed Notification to Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
if: ${{ failure() }} | ||
env: | ||
SLACK_CHANNEL: github-notification | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_ICON: https://user-images.githubusercontent.com/39984656/126071498-60496f8c-4971-4bb1-9609-2cab573c1079.png | ||
SLACK_MESSAGE: '[${{ github.workflow }}.${{ github.action }}] Failed!! :rage:' | ||
SLACK_TITLE: Message | ||
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
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,15 +1,22 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.idea | ||
.idea/ | ||
.idea/* | ||
.idea/caches | ||
.idea/libraries | ||
.idea/modules.xml | ||
.idea/workspace.xml | ||
.idea/navEditor.xml | ||
.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
.idea/misc.xml | ||
.idea/gradle.xml | ||
.idea/compiler.xml | ||
|
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,4 @@ | ||
[submodule "android-compilation"] | ||
path = android-compilation | ||
url = https://github.com/beomjo/android-compilation.git | ||
branch = main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.