17
17
jobs :
18
18
# This workflow contains a single job called "build"
19
19
unitAndFunctionalTests :
20
- if : github.repository == 'eiffel-community/eiffel-intelligence'
20
+ if : github.repository == 'eiffel-community/eiffel-intelligence' && false
21
21
# The type of runner that the job will run on
22
22
runs-on : ubuntu-latest
23
23
env :
53
53
mvn test -DskipITs -Dsurefire.rerunFailingTestsCount=2 -Djasypt.encryptor.password=secret -Dspring.config.location=src/functionaltests/resources/application.properties -B
54
54
55
55
integrationTests :
56
- if : github.repository == 'eiffel-community/eiffel-intelligence'
56
+ if : github.repository == 'eiffel-community/eiffel-intelligence' && false
57
57
# The type of runner that the job will run on
58
58
runs-on : ubuntu-latest
59
59
91
91
mvn verify -DskipUTs -Djasypt.encryptor.password=integrationtest -Dspring.config.location=src/integrationtests/resources/application.properties -B
92
92
93
93
reportCoverage :
94
- if : github.repository == 'eiffel-community/eiffel-intelligence' && github.event_name == 'push'
94
+ if : github.repository == 'eiffel-community/eiffel-intelligence'
95
+ # && github.event_name == 'push'
95
96
# The type of runner that the job will run on
96
97
runs-on : ubuntu-latest
97
98
env :
@@ -113,15 +114,22 @@ jobs:
113
114
wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
114
115
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
115
116
echo "${M2_HOME}/bin" >> $GITHUB_PATH
117
+
118
+ # To ensure docker containers are fully up and running we sleep 60s
119
+ - name : Before script
120
+ run : |
121
+ source src/main/docker/env.bash
122
+ docker compose -f src/main/docker/docker-compose.yml up -d mongodb mongodb-auth rabbitmq eiffel-er mail-server
123
+ sleep 60
116
124
117
125
- name : Run jacoco
118
126
shell : bash
119
127
run : |
120
- mvn -V -B -U clean test jacoco:report -Dformats=xml
128
+ 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
121
129
122
130
# Generating test coverage report and publishing to Codacy
123
131
- name : Run report coverage
124
132
uses : codacy/codacy-coverage-reporter-action@v1
125
133
with :
126
134
project-token : 571cdd20d4bf435f84b25d806d304792
127
- coverage-reports : target/jacoco/jacoco.xml
135
+ coverage-reports : target/site/ jacoco/jacoco.xml
0 commit comments