[Feat/#77] alarm manager #39
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
name: Android CI | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: generate local property | |
run: | | |
echo ATT_BASE_URL=\"$ATT_BASE_URL\" >> local.properties | |
echo TMP_ACCESS_TOKEN=\"$TMP_ACCESS_TOKEN\" >> local.properties | |
echo SENTRY_DSN=\"$SENTRY_DSN\" >> local.properties | |
env: | |
ATT_BASE_URL: ${{ secrets.ATT_BASE_URL }} | |
TMP_ACCESS_TOKEN: ${{ secrets.TMP_ACCESS_TOKEN }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Unit Test | |
run: ./gradlew test | |
- name: Upload Test Reports Folder | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports | |
path: app/build/reports/tests | |
- name: Download Test Reports Folder | |
uses: actions/download-artifact@v3 | |
with: | |
name: reports | |
- name: Android Test Report | |
uses: asadmansr/[email protected] | |
merge-branch: | |
permissions: | |
checks: write | |
contents: write | |
pull-requests: write | |
needs: build-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Merge staging -> develop | |
uses: devmasx/merge-branch@master | |
with: | |
type: now | |
message: auto merged in develop | |
target_branch: 'develop' | |
github_token: ${{ secrets.GITHUB_TOKEN }} |