Skip to content

Commit 55a8102

Browse files
authored
Update main.yml
1 parent 830cdb0 commit 55a8102

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
# This workflow contains a single job called "build"
1919
unitAndFunctionalTests:
20-
if: github.repository == 'eiffel-community/eiffel-intelligence'
20+
if: github.repository == 'eiffel-community/eiffel-intelligence' && false
2121
# The type of runner that the job will run on
2222
runs-on: ubuntu-latest
2323
env:
@@ -53,7 +53,7 @@ jobs:
5353
mvn test -DskipITs -Dsurefire.rerunFailingTestsCount=2 -Djasypt.encryptor.password=secret -Dspring.config.location=src/functionaltests/resources/application.properties -B
5454
5555
integrationTests:
56-
if: github.repository == 'eiffel-community/eiffel-intelligence'
56+
if: github.repository == 'eiffel-community/eiffel-intelligence' && false
5757
# The type of runner that the job will run on
5858
runs-on: ubuntu-latest
5959

@@ -91,7 +91,8 @@ jobs:
9191
mvn verify -DskipUTs -Djasypt.encryptor.password=integrationtest -Dspring.config.location=src/integrationtests/resources/application.properties -B
9292
9393
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'
9596
# The type of runner that the job will run on
9697
runs-on: ubuntu-latest
9798
env:
@@ -113,15 +114,22 @@ jobs:
113114
wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
114115
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
115116
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
116124
117125
- name: Run jacoco
118126
shell: bash
119127
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
121129
122130
# Generating test coverage report and publishing to Codacy
123131
- name: Run report coverage
124132
uses: codacy/codacy-coverage-reporter-action@v1
125133
with:
126134
project-token: 571cdd20d4bf435f84b25d806d304792
127-
coverage-reports: target/jacoco/jacoco.xml
135+
coverage-reports: target/site/jacoco/jacoco.xml

0 commit comments

Comments
 (0)