reusable-test-latest-deps.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: Reusable - Test latest deps
  2. on:
  3. workflow_call:
  4. inputs:
  5. skip:
  6. type: boolean
  7. required: false
  8. cache-read-only:
  9. type: boolean
  10. required: false
  11. no-build-cache:
  12. type: boolean
  13. required: false
  14. secrets:
  15. GRADLE_ENTERPRISE_ACCESS_KEY:
  16. required: false
  17. GE_CACHE_USERNAME:
  18. required: false
  19. GE_CACHE_PASSWORD:
  20. required: false
  21. jobs:
  22. testLatestDeps:
  23. # the condition is on the steps below instead of here on the job, because skipping the job
  24. # causes the job to show up as canceled in the GitHub UI which prevents the build section from
  25. # collapsing when everything (else) is green
  26. #
  27. # and the name is updated when the steps below are skipped which makes what's happening clearer
  28. # in the GitHub UI
  29. name: testLatestDeps${{ inputs.skip && ' (skipped)' || '' }}
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/checkout@v3
  33. - name: Set up JDK for running Gradle
  34. if: ${{ !inputs.skip }}
  35. uses: actions/setup-java@v2
  36. with:
  37. distribution: temurin
  38. java-version: 17
  39. # vaadin tests use pnpm
  40. - name: Cache pnpm modules
  41. uses: actions/cache@v2
  42. with:
  43. path: ~/.pnpm-store
  44. key: ${{ runner.os }}-test-latest-cache-pnpm-modules
  45. - name: Test
  46. if: ${{ !inputs.skip }}
  47. uses: gradle/gradle-build-action@v2
  48. env:
  49. GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
  50. GE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
  51. GE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
  52. with:
  53. arguments: test -PtestLatestDeps=true ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
  54. # testLatestDeps dependencies bundle is over 2gb, which causes restoring it to fail with:
  55. # RangeError [ERR_OUT_OF_RANGE]: The value of "length" is out of range.
  56. # It must be >= 0 && <= 2147483647. Received 2299528741
  57. cache-read-only: true