build_pull_request.yml 858 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: PR build check
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - '**.md'
  6. - 'app/src/main/res/**/strings.xml'
  7. permissions:
  8. contents: read
  9. jobs:
  10. build:
  11. name: Build app
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Clone repo
  15. uses: actions/checkout@v3
  16. - name: Validate Gradle Wrapper
  17. uses: gradle/wrapper-validation-action@v1
  18. - name: Dependency Review
  19. uses: actions/dependency-review-action@v1
  20. - name: Set up JDK 11
  21. uses: actions/setup-java@v1
  22. with:
  23. java-version: 11
  24. - name: Copy CI gradle.properties
  25. run: |
  26. mkdir -p ~/.gradle
  27. cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
  28. - name: Build app
  29. uses: gradle/gradle-command-action@v2
  30. with:
  31. arguments: assembleStandardRelease