[#49] Add a developer, I can avoid multiple clicks and navigation events #64
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: Review pull request | |
| on: | |
| pull_request: | |
| types: [ opened, edited, reopened, synchronize ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| review_pull_request: | |
| name: Review pull request | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Set up JDK 1.8 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Checkout source code | |
| uses: actions/checkout@v5 | |
| - name: Cache Gradle | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches/modules-* | |
| ~/.gradle/caches/jars-* | |
| ~/.gradle/caches/build-cache-* | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run Detekt | |
| run: ./gradlew detekt | |
| - name: Run Android Lint | |
| run: ./gradlew lint | |
| - name: Run unit tests with Kover | |
| run: ./gradlew koverXmlReportCustom | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4.6' | |
| bundler-cache: true | |
| - name: Run Danger to wrap up the review | |
| env: | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| bundle install | |
| bundle exec danger |