maven.yml 850 B

123456789101112131415161718192021222324252627282930
  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. push:
  6. branches: [ master ]
  7. pull_request:
  8. branches: [ master ]
  9. jobs:
  10. build:
  11. name: Build and test
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Setup JDK 11
  16. uses: actions/setup-java@v2
  17. with:
  18. java-version: '11'
  19. distribution: 'adopt'
  20. cache: maven
  21. - name: Checkout
  22. uses: actions/checkout@v2
  23. - name: Update submodule
  24. run: git submodule update --init
  25. - name: Build with Maven
  26. run: mvn --batch-mode --update-snapshots verify