|
1 |
| -# CI with maven build and scan |
2 |
| -# |
3 |
| -# version 1.0.1 |
4 |
| -# |
5 |
| -# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_package.html |
| 1 | +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time |
| 2 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven |
6 | 3 |
|
7 |
| -name: CI maven build and scan |
| 4 | +# This workflow uses actions that are not certified by GitHub. |
| 5 | +# They are provided by a third-party and are governed by |
| 6 | +# separate terms of service, privacy policy, and support |
| 7 | +# documentation. |
| 8 | + |
| 9 | +name: CI maven build and sonar cloud scan |
| 10 | + |
| 11 | +######################################################################################################### |
| 12 | +# note : this workflow runs on windows as a graphical interface is currently needed for gui test # |
| 13 | +######################################################################################################### |
| 14 | +# note : github auth secrets have beend set to increase github api usage limits # |
| 15 | +######################################################################################################### |
8 | 16 |
|
9 | 17 | on:
|
10 | 18 | # Trigger analysis when pushing in master or pull requests, and when creating
|
|
55 | 63 | # SonarCloud access token should be generated from https://sonarcloud.io/account/security/
|
56 | 64 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
57 | 65 | - name: Build and analyze
|
58 |
| - run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,full,metadata,sonarfugerit -Dsonar.projectKey=fugerit-org_${{github.event.repository.name}} -DgithubParam1=%TEST_GITHUB_USER% -DgithubParam2=%TEST_GITHUB_PASS% |
| 66 | + run: mvn -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -P coverage,full,metadata,sonarfugerit -DgithubParam1=%TEST_GITHUB_USER% -DgithubParam2=%TEST_GITHUB_PASS% |
59 | 67 | env:
|
60 | 68 | # Needed to get some information about the pull request, if any
|
61 | 69 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
0 commit comments