maven.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
  3. # This workflow uses actions that are not certified by GitHub.
  4. # They are provided by a third-party and are governed by
  5. # separate terms of service, privacy policy, and support
  6. # documentation.
  7. name: Java CI with Maven
  8. on:
  9. push:
  10. branches: [ "master" ]
  11. pull_request:
  12. branches: [ "master" ]
  13. jobs:
  14. build:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Set up JDK 17
  19. uses: actions/setup-java@v3
  20. with:
  21. java-version: '17'
  22. distribution: 'temurin'
  23. cache: maven
  24. - name: Build with Maven
  25. run: mvn -B package --file pom.xml
  26. # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
  27. - name: Update dependency graph
  28. uses: advanced-security/maven-dependency-submission-action@645590b3478fd1cfea2db9b18f4599a747b844d4