Skip to content

Commit a5cd06a

Browse files
committed
Fixed build_maven_package.yml workflow
1 parent 8f08dbd commit a5cd06a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/build_maven_package.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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
63

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+
#########################################################################################################
816

917
on:
1018
# Trigger analysis when pushing in master or pull requests, and when creating
@@ -55,7 +63,7 @@ jobs:
5563
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
5664
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5765
- 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%
5967
env:
6068
# Needed to get some information about the pull request, if any
6169
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)