Skip to content

[Feat/#82] register store logic 추가 #49

[Feat/#82] register store logic 추가

[Feat/#82] register store logic 추가 #49

Workflow file for this run

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_DEBUG=\"SENTRY_DSN_DEBUG\" >> local.properties
echo SENTRY_DSN_RELEASE=\"SENTRY_DSN_RELEASE\" >> local.properties
env:
ATT_BASE_URL: ${{ secrets.ATT_BASE_URL }}
TMP_ACCESS_TOKEN: ${{ secrets.TMP_ACCESS_TOKEN }}
SENTRY_DSN_DEBUG: ${{ secrets.SENTRY_DSN_DEBUG }}
SENTRY_DSN_RELEASE: ${{ secrets.SENTRY_DSN_RELEASE }}
- 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 }}