Skip to content

Commit

Permalink
[ADD/#3] add pr_checker
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 3, 2024
1 parent 3745e87 commit 90aebe2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pr_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: TerningPoint PR Checker

on:
pull_request:
branches: [ develop ]

defaults:
run:
shell: bash
working-directory: .

jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 1.8

- name: Change gradlew permissions
run: chmod +x ./gradlew

- name: Create Local Properties
run: touch local.properties

- name: Access Local Properties
env:
base_url: ${{ secrets.BASE_URL }}
run: |
echo base.url=\"$base_url\" >> local.properties
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ android {
debug {
buildConfigField(
"String",
"OPEN_BASE_URL",
gradleLocalProperties(rootDir, providers).getProperty("open.base.url")
"BASE_URL",
gradleLocalProperties(rootDir, providers).getProperty("base.url")
)
}
release {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/terning/point/di/RetrofitModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object RetrofitModule {
client: OkHttpClient,
factory: Converter.Factory
): Retrofit = Retrofit.Builder()
.baseUrl(BuildConfig.OPEN_BASE_URL)
.baseUrl(BuildConfig.BASE_URL)
.addConverterFactory(factory)
.client(client)
.build()
Expand Down

0 comments on commit 90aebe2

Please sign in to comment.