maven-ci-and-prb.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright 2017-2020 Adobe.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
  17. name: Maven Build
  18. on:
  19. push:
  20. branches: [ main ]
  21. pull_request:
  22. branches: [ main ]
  23. jobs:
  24. build:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. with:
  29. fetch-depth: 0
  30. - name: Set up JDK
  31. uses: actions/setup-java@v3
  32. with:
  33. java-version: 17
  34. distribution: 'adopt'
  35. cache: 'maven'
  36. - name: Build with Maven
  37. run: ./mvnw -B -V -Dstyle.color=always clean verify