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.

build.yml 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. name: Build
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. pull_request:
  7. types: [opened, synchronize, reopened]
  8. jobs:
  9. build:
  10. name: Build
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. with:
  15. fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
  16. - name: Set up JDK 17
  17. uses: actions/setup-java@v4
  18. with:
  19. distribution: "temurin"
  20. java-version: 17
  21. cache: maven
  22. - name: Cache SonarCloud packages
  23. uses: actions/cache@v1
  24. with:
  25. path: ~/.sonar/cache
  26. key: ${{ runner.os }}-sonar
  27. restore-keys: ${{ runner.os }}-sonar
  28. - name: Build and analyze
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
  31. SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
  32. run: cd pf4j && mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar