-
Notifications
You must be signed in to change notification settings - Fork 2
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 #60 from beomjo/1.0.4/merge-develop-into-main
Merge develop into main branch
- Loading branch information
Showing
30 changed files
with
468 additions
and
283 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 |
---|---|---|
|
@@ -5,10 +5,12 @@ on: | |
# branches: [ main, develop ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
schedule: | ||
- cron: '* 7 * * *' | ||
|
||
jobs: | ||
unit_test: | ||
name: UnitTest | ||
android_lint: | ||
name: AndroidLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -25,15 +27,8 @@ jobs: | |
- 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/[email protected] | ||
if: ${{ always() }} | ||
with: | ||
name: reports | ||
path: app/build/test-results | ||
- name: Run Android Lint | ||
run: ./gradlew lintRelease | ||
|
||
- name: Workflow Failed Notification to Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
|
@@ -47,10 +42,8 @@ jobs: | |
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
|
||
ktlint: | ||
name: ktlint | ||
needs: unit_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -85,7 +78,6 @@ jobs: | |
|
||
detekt: | ||
name: detekt | ||
needs: [ unit_test, ktlint ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -117,9 +109,52 @@ jobs: | |
SLACK_USERNAME: Github Notification | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
|
||
unit_test: | ||
name: UnitTest | ||
needs: [ android_lint, ktlint, detekt ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
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/[email protected] | ||
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: [ unit_test, ktlint, detekt ] | ||
needs: [ android_lint, ktlint, detekt, unit_test ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
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
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ local.properties | |
.idea/gradle.xml | ||
.idea/vcs.xml | ||
.idea | ||
.idea/ |
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.