verify.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. name: Verify
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - master
  7. paths-ignore:
  8. - '**/modules/web/**'
  9. pull_request:
  10. paths-ignore:
  11. - '**/modules/web/**'
  12. workflow_dispatch:
  13. permissions:
  14. contents: read
  15. concurrency:
  16. group: verify-${{ github.workflow }}-${{ github.ref }}
  17. cancel-in-progress: true
  18. jobs:
  19. verify:
  20. runs-on: ubuntu-latest
  21. steps:
  22. - name: Checkout
  23. uses: actions/checkout@v5
  24. - name: Set up JDK 21
  25. uses: actions/setup-java@v5
  26. with:
  27. distribution: temurin
  28. java-version: 21
  29. - name: Set up Gradle
  30. uses: gradle/actions/setup-gradle@v4
  31. - name: Run tests, lint, architecture check, and debug build
  32. run: |
  33. chmod +x gradlew
  34. ./gradlew \
  35. testAppDebugUnitTest \
  36. lintAppDebug \
  37. verifyConfigArchitecture \
  38. assembleAppDebug \
  39. --continue \
  40. --no-daemon \
  41. --no-configuration-cache
  42. - name: Upload unit test reports
  43. if: ${{ always() }}
  44. uses: actions/upload-artifact@v4
  45. with:
  46. name: verify-unit-test-reports
  47. if-no-files-found: warn
  48. path: |
  49. app/build/test-results/testAppDebugUnitTest/**
  50. app/build/reports/tests/testAppDebugUnitTest/**
  51. - name: Upload lint reports
  52. if: ${{ always() }}
  53. uses: actions/upload-artifact@v4
  54. with:
  55. name: verify-lint-reports
  56. if-no-files-found: warn
  57. path: |
  58. app/build/reports/lint-results-appDebug.html
  59. app/build/reports/lint-results-appDebug.xml
  60. app/build/reports/lint-results-appDebug.txt
  61. app/build/reports/lint-results-appDebug.sarif