Skip to content

Commit

Permalink
💚 add local.properties variable to ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkim2689 committed Jul 25, 2024
1 parent d8abd10 commit 24fd51b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/an-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
- name: Set up environment variable for BuildConfig
env:
GOOGLE_WEB_CLIENT_ID: ${{ secrets.GOOGLE_WEB_CLIENT_ID }}
BASE_URL_DEV: ${{ secrets.BASE_URL_DEV }}
BASE_URL_API: ${{ secrets.BASE_URL_API }}
run: |
echo google_web_client_id=\"$GOOGLE_WEB_CLIENT_ID\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" > ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" > ./android/local.properties
- name: Run ktLint
run: ./gradlew ktlintCheck
working-directory: ./android
Expand All @@ -49,6 +53,8 @@ jobs:
GOOGLE_WEB_CLIENT_ID: ${{ secrets.GOOGLE_WEB_CLIENT_ID }}
run: |
echo google_web_client_id=\"$GOOGLE_WEB_CLIENT_ID\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" > ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" > ./android/local.properties
- name: Build and test
run: ./gradlew build test
working-directory: ./android

0 comments on commit 24fd51b

Please sign in to comment.