@@ -88,40 +88,13 @@ jobs:
88
88
- name : Run integration tests
89
89
run : |
90
90
mvn --version
91
- mvn verify -DskipUTs -Djasypt.encryptor.password=integrationtest -Dspring.config.location=src/integrationtests/resources/application.properties -B
92
-
93
- reportCoverage :
94
- if : github.repository == 'eiffel-community/eiffel-intelligence' && github.event_name == 'push'
95
- # The type of runner that the job will run on
96
- runs-on : ubuntu-latest
97
- env :
98
- M2_HOME : /opt/apache-maven-3.6.3
99
- MAVEN_HOME : /opt/apache-maven-3.6.3
91
+ mvn verify -DskipUTs -Djasypt.encryptor.password=integrationtest -Dspring.config.location=src/integrationtests/resources/application.properties jacoco:report -Dformats=xml -B
100
92
101
- # Steps represent a sequence of tasks that will be executed as part of the job
102
- steps :
103
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
104
- - uses : actions/checkout@v4
105
- - uses : actions/setup-java@v4
106
- with :
107
- distribution : ' temurin'
108
- java-version : ' 17'
109
-
110
- - name : Install Maven
111
- shell : bash
112
- run : |
113
- wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
114
- tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
115
- echo "${M2_HOME}/bin" >> $GITHUB_PATH
116
-
117
- - name : Run cobertura
118
- shell : bash
119
- run : |
120
- mvn cobertura:cobertura -Dcobertura.report.format=xml -B
121
-
122
93
# Generating test coverage report and publishing to Codacy
123
94
- name : Run report coverage
95
+ if : github.event_name == 'push'
124
96
uses : codacy/codacy-coverage-reporter-action@v1
125
97
with :
126
- project-token : 571cdd20d4bf435f84b25d806d304792
127
- coverage-reports : target/site/cobertura/coverage.xml
98
+ project-token : ${{ secrets.CODACY_PROJECT_TOKEN }}
99
+ coverage-reports : target/site/jacoco/jacoco.xml
100
+
0 commit comments