maven.yml 790 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. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. java: [ '8', '11', '17' ]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Set up JDK ${{ matrix.Java }}
  18. uses: actions/setup-java@v2
  19. with:
  20. java-version: ${{ matrix.java }}
  21. distribution: 'temurin'
  22. cache: maven
  23. - name: Build with Maven
  24. run: mvn -B package --file pom.xml -Dmaven.test.skip=true