Skip to content

Commit

Permalink
Merge pull request #53 from beomjo/1.0.0/merge-develop-into-main
Browse files Browse the repository at this point in the history
1.0.0/merge develop into main
  • Loading branch information
beomjo authored Sep 22, 2021
2 parents 04f2adf + 076ee1c commit bcc127e
Show file tree
Hide file tree
Showing 194 changed files with 9,767 additions and 435 deletions.
155 changes: 155 additions & 0 deletions .github/workflows/android.yml
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 }}
19 changes: 13 additions & 6 deletions .gitignore
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

4 changes: 4 additions & 0 deletions .gitmodules
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
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/gradle.xml

This file was deleted.

30 changes: 0 additions & 30 deletions .idea/jarRepositories.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/misc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/runConfigurations.xml

This file was deleted.

Loading

0 comments on commit bcc127e

Please sign in to comment.