build_pull_request.yml 948 B

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