From 20ebd9ba8df2ba143f1a8cbda28ac570ffd890c4 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Fri, 4 Oct 2024 12:24:01 +0300 Subject: [PATCH] Add rabbitmq for verify phase (#1855) * Add rabbit mq for verify phase Signed-off-by: Marinov Avgustin --- .github/workflows/{build.yml => verify.yml} | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => verify.yml} (66%) diff --git a/.github/workflows/build.yml b/.github/workflows/verify.yml similarity index 66% rename from .github/workflows/build.yml rename to .github/workflows/verify.yml index fb94e586d4..f212f6a4dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/verify.yml @@ -1,4 +1,4 @@ -name: build +name: verify (license, test and scan) on: push: @@ -12,6 +12,17 @@ jobs: env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + services: + rabbitmq: + image: rabbitmq:3-management-alpine + env: + RABBITMQ_DEFAULT_VHOST: / + RABBITMQ_DEFAULT_USER: guest + RABBITMQ_DEFAULT_PASS: guest + ports: + - 15672:15672 + - 5672:5672 + steps: - uses: actions/checkout@v4 @@ -25,9 +36,9 @@ jobs: - name: Check license run: mvn license:check --batch-mode - - name: Build with Maven + - name: Run Tests & javadoc run: mvn verify javadoc:javadoc --batch-mode # # - name: Scan # if: ${{ BRANCH_NAME == 'master' }} -# run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=eclipse-master -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode \ No newline at end of file +# run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=eclipse-master -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode