build.yml 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Java CI with Maven
  2. on:
  3. push:
  4. branches: [ master, 2.3.x, 3.0.x ]
  5. pull_request:
  6. branches: [ master, 2.3.x, 3.0.x ]
  7. jobs:
  8. build:
  9. name: "Test with ${{ matrix.version }}"
  10. strategy:
  11. matrix:
  12. version: [ 8.0.282.hs-adpt ]
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Cache local Maven repository
  17. uses: actions/cache@v2
  18. with:
  19. path: ~/.m2/repository
  20. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  21. restore-keys: ${{ runner.os }}-maven-
  22. - name: Download ${{ matrix.version }}
  23. uses: sdkman/sdkman-action@master
  24. id: sdkman
  25. with:
  26. candidate: java
  27. version: ${{ matrix.version }}
  28. - name: Set up ${{ matrix.version }}
  29. uses: actions/setup-java@v1
  30. with:
  31. java-version: 8
  32. jdkFile: ${{ steps.sdkman.outputs.file }}
  33. - name: Build with Maven
  34. run: ./mvnw -V -B verify