You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-gradle.yml 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This workflow will build a Java project with Gradle
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
  3. name: Java CI with Gradle
  4. on:
  5. push:
  6. branches: [ trunk ]
  7. pull_request:
  8. branches: [ trunk ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up JDK
  15. uses: actions/setup-java@v2
  16. with:
  17. distribution: 'temurin'
  18. java-version: '11'
  19. check-latest: true
  20. - name: Cache Gradle wrapper and dependencies
  21. uses: actions/cache@v2.1.3
  22. with:
  23. path: |
  24. ~/.gradle/caches
  25. ~/.gradle/wrapper
  26. key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
  27. restore-keys: |
  28. ${{ runner.os }}-gradle-
  29. - name: Verify Gradle wrapper
  30. uses: gradle/wrapper-validation-action@v1
  31. - name: Grant execute permission for gradlew
  32. run: chmod +x gradlew
  33. - name: Build with Gradle
  34. run: ./gradlew check -PjdkVersion=11