@@ -88,47 +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
- # To ensure docker containers are fully up and running we sleep 60s
118
- - name : Before script
119
- run : |
120
- source src/main/docker/env.bash
121
- docker compose -f src/main/docker/docker-compose.yml up -d mongodb mongodb-auth rabbitmq eiffel-er mail-server
122
- sleep 60
123
-
124
- - name : Run jacoco
125
- shell : bash
126
- run : |
127
- mvn -V -B -U clean test -DskipITs -Dsurefire.rerunFailingTestsCount=2 -Djasypt.encryptor.password=secret -Dspring.config.location=src/functionaltests/resources/application.properties jacoco:report -Dformats=xml
128
-
129
93
# Generating test coverage report and publishing to Codacy
130
94
- name : Run report coverage
95
+ if : github.event_name == 'push'
131
96
uses : codacy/codacy-coverage-reporter-action@v1
132
97
with :
133
- project -token : 571cdd20d4bf435f84b25d806d304792
98
+ api -token : ${{ secrets.CODACY_API_TOKEN }}
134
99
coverage-reports : target/site/jacoco/jacoco.xml
100
+
0 commit comments