You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-maven.yml 839B

123456789101112131415161718192021222324252627282930313233343536
  1. # This workflow will build a Java project with Maven
  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: [ trunk ]
  7. pull_request:
  8. branches: [ trunk ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up JDK
  15. uses: actions/setup-java@v2
  16. with:
  17. distribution: 'adopt'
  18. java-version: '11'
  19. check-latest: true
  20. - name: Cache
  21. uses: actions/cache@v2.1.3
  22. with:
  23. path: ~/.m2/repository
  24. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  25. restore-keys: |
  26. ${{ runner.os }}-maven-
  27. - name: Build with Maven
  28. run: (cd sonar && mvn -B validate package --file pom.xml)