build_pull_request.yml 881 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: PR build check
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - '**.md'
  6. - 'i18n/src/main/res/**/strings.xml'
  7. concurrency:
  8. group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
  9. cancel-in-progress: true
  10. permissions:
  11. contents: read
  12. jobs:
  13. build:
  14. name: Build app
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Clone repo
  18. uses: actions/checkout@v4
  19. - name: Validate Gradle Wrapper
  20. uses: gradle/wrapper-validation-action@v1
  21. - name: Dependency Review
  22. uses: actions/dependency-review-action@v3
  23. - name: Set up JDK
  24. uses: actions/setup-java@v3
  25. with:
  26. java-version: 17
  27. distribution: adopt
  28. - name: Build app and run unit tests
  29. uses: gradle/gradle-command-action@v2
  30. with:
  31. arguments: ktlintCheck assembleStandardRelease testReleaseUnitTest