From 77ed67759ec3cd51dc737ba91afc416ade3fbb7e Mon Sep 17 00:00:00 2001 From: leeseokchan00 <112953135+leeseokchan00@users.noreply.github.com> Date: Thu, 19 Jun 2025 02:25:37 +0900 Subject: [PATCH 1/2] [feature] #1 qull request ci setting --- .github/workflows/android-pull-request-ci.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/android-pull-request-ci.yml diff --git a/.github/workflows/android-pull-request-ci.yml b/.github/workflows/android-pull-request-ci.yml new file mode 100644 index 00000000..ceb845f0 --- /dev/null +++ b/.github/workflows/android-pull-request-ci.yml @@ -0,0 +1,26 @@ +name: Android Pull Request CI +on: + pull_request: + branches: [ develop ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v3 + + - name: Setup JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '17' + + - name: Setup Android SDK + uses: android-actions/setup-android@v2 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Run ktlint + run: ./gradlew ktlintCheck \ No newline at end of file From 2a4f2ca81b4bb4a41ec6623d495bee9b19e3c4b0 Mon Sep 17 00:00:00 2001 From: leeseokchan00 <112953135+leeseokchan00@users.noreply.github.com> Date: Thu, 19 Jun 2025 02:54:43 +0900 Subject: [PATCH 2/2] refactor#1 edit ci --- .github/workflows/android-pull-request-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/android-pull-request-ci.yml b/.github/workflows/android-pull-request-ci.yml index ceb845f0..bc6da2c7 100644 --- a/.github/workflows/android-pull-request-ci.yml +++ b/.github/workflows/android-pull-request-ci.yml @@ -22,5 +22,8 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Create local.properties with base.url + run: echo "base.url=https://ci-placeholder.local" >> local.properties + - name: Run ktlint run: ./gradlew ktlintCheck \ No newline at end of file