maven.yml 792 B

123456789101112131415161718192021222324252627
  1. # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
  3. name: Java CI with Maven
  4. on:
  5. pull_request:
  6. jobs:
  7. build:
  8. name: Build and test
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Setup JDK 11
  13. uses: actions/setup-java@v4
  14. with:
  15. java-version: '11'
  16. distribution: 'adopt'
  17. cache: maven
  18. - name: Checkout
  19. uses: actions/checkout@v4
  20. - name: Update submodule
  21. run: git submodule update --init
  22. - name: Build with Maven
  23. run: mvn --batch-mode --update-snapshots verify