2
0

maven.yml 721 B

1234567891011121314151617181920212223242526
  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: Build with Maven
  22. run: mvn --batch-mode --update-snapshots verify