π ΠΠ°ΡΡΡΠ°Π±Π½ΠΎΠ΅ ΡΠ»ΡΡΡΠ΅Π½ΠΈΠ΅ - ΠΡΠ°ΠΏ 3: Dashboard Ρ ΠΠ½Π°Π»ΠΈΡΠΈΠΊΠΎΠΉ #27
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: PR Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Generate Gradle Wrapper | |
| run: gradle wrapper | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Run Lint | |
| run: ./gradlew lint || true | |
| - name: Upload Lint Report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: lint-report | |
| path: app/build/reports/lint-results-debug.html | |
| if-no-files-found: ignore | |
| - name: Comment PR with build status | |
| uses: actions/github-script@v7 | |
| if: always() | |
| with: | |
| script: | | |
| const status = '${{ job.status }}' === 'success' ? 'β ' : 'β'; | |
| const message = `## ${status} Build Status\n\nBuild ${{ job.status }}`; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: message | |
| }); |