클린 빌드 시에도 테스트 코드를 실행하도록 수정 #953
Workflow file for this run
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-develop CI | |
# Every new pull request to develop branch must fire CI check | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Create google-services | |
run: | | |
mkdir ./app/src/debug | |
echo '${{ secrets.GOOGLE_SERVICES_JSON_DEBUG }}' > ./app/src/debug/google-services.json | |
- name: Create local.properties | |
run: echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties | |
# Build Debug App | |
- name: Build with Gradle | |
run: ./gradlew :app:assembleDebug | |
# Run unit test | |
- name: Run unit test | |
run: ./gradlew testDebugUnitTest |