@@ -88,47 +88,13 @@ jobs:
8888 - name : Run integration tests
8989 run : |
9090 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
10092
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-
12993 # Generating test coverage report and publishing to Codacy
13094 - name : Run report coverage
95+ if : github.event_name == 'push'
13196 uses : codacy/codacy-coverage-reporter-action@v1
13297 with :
133- project -token : 571cdd20d4bf435f84b25d806d304792
98+ api -token : ${{ secrets.CODACY_API_TOKEN }}
13499 coverage-reports : target/site/jacoco/jacoco.xml
100+
0 commit comments