강의 상세 및 검색 입력 동작 개선 #2168
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - 'develop' | |
| push: | |
| branches: | |
| - 'develop' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ktlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'jetbrains' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: ${{ github.event_name == 'pull_request' }} | |
| - name: Setup secrets | |
| uses: ./.github/actions/setup-secrets | |
| with: | |
| variant: dev | |
| google_services_json: ${{ secrets.google_services_json_dev }} | |
| secrets_xml_app: ${{ secrets.secrets_xml_dev }} | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck --stacktrace | |
| - name: Upload ktlint report | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: ktlint-result | |
| path: ./**/build/reports/ktlint/**/*.html | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'jetbrains' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: ${{ github.event_name == 'pull_request' }} | |
| - name: Setup secrets | |
| uses: ./.github/actions/setup-secrets | |
| with: | |
| variant: dev | |
| google_services_json: ${{ secrets.google_services_json_dev }} | |
| secrets_xml_app: ${{ secrets.secrets_xml_dev }} | |
| - name: Build debug APK, run unit tests, run lint | |
| run: ./gradlew assembleDevDebug testDevDebugUnitTest lintDevDebug --stacktrace | |
| - name: Upload unit test report | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: unit-test-report | |
| path: ./**/build/reports/tests/** | |
| - name: Upload lint report | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: lint-report | |
| path: ./**/build/reports/lint-results-*.html |