Skip to content

Commit

Permalink
[FEAT/#6] pr-checker 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jan 4, 2025
1 parent c8061c5 commit 3896496
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/pr_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Spoony pr checker
on:
pull_request:
branches: [ develop, main ]
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 18
uses: actions/setup-java@v3
with:
java-version: 18
distribution: 'temurin'

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

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Touch local properties
run: touch local.properties

- name: Access Local Properties
env:
HFM_BASE_URL: ${{ secrets.BASE_URL }}
run: echo "base.url=\"$BASE_URL\"" >> local.properties

- name: Lint Check
run: ./gradlew ktlintCheck -PcompileSdkVersion=35

- name: Build with Gradle
run: ./gradlew build -PcompileSdkVersion=35

0 comments on commit 3896496

Please sign in to comment.