maven.yml 663 B

123456789101112131415161718192021222324
  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. runs-on: ubuntu-22.04
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up JDK 8
  15. uses: actions/setup-java@v2
  16. with:
  17. java-version: '8'
  18. distribution: 'adopt'
  19. cache: maven
  20. - name: Build with Maven
  21. run: mvn -B package --file pom.xml