oldalbum-maven-ci-build.yml 758 B

123456789101112131415161718192021222324252627
  1. name: oldalbum CI build
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Set up JDK 17
  13. uses: actions/setup-java@v3
  14. with:
  15. java-version: '17'
  16. distribution: 'temurin'
  17. cache: maven
  18. - name: Build with Maven
  19. run: mvn -B org.jacoco:jacoco-maven-plugin:prepare-agent install coveralls:report sonar:sonar --file pom.xml --define repoToken=${{ secrets.COVERALLS_REPO_SECRET }} -Dsonar.projectKey=steinarb_oldalbum -Dsonar.organization=steinarb -Dsonar.host.url=https://sonarcloud.io
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}