[FEAT/#31] QUIZ 기능 구현 #36
This file contains hidden or 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: MalHaRang PR Builder | |
| on: | |
| pull_request: | |
| branches: [ develop, main ] | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: . | |
| jobs: | |
| build: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Cache Gradle dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew | |
| - name: Create local.properties | |
| run: touch local.properties | |
| - name: Set BASE_URL in local.properties | |
| env: | |
| HFM_BASE_URL: ${{ secrets.BASE_URL }} | |
| run: echo "base.url=\"$HFM_BASE_URL\"" >> local.properties | |
| - name: Run ktlint check | |
| run: ./gradlew ktlintCheck -PcompileSdkVersion=34 | |
| - name: Build project | |
| run: ./gradlew build -PcompileSdkVersion=34 |