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 785B

12345678910111213141516171819202122232425262728293031323334
  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 1.8
  15. uses: actions/setup-java@v1
  16. with:
  17. java-version: 1.8
  18. - name: Cache
  19. uses: actions/cache@v2.1.3
  20. with:
  21. path: ~/.m2/repository
  22. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  23. restore-keys: |
  24. ${{ runner.os }}-maven-
  25. - name: Build with Maven
  26. run: (cd sonar && mvn -B validate package --file pom.xml)