From 03f51451872ec9a1b21ef48828afe2faf5f0b3ed Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Mon, 13 Oct 2025 19:29:46 +0530 Subject: [PATCH] Add deploy and test job Execute test suite after downloading docker artifacts Issue-ID: OAM-519 Change-Id: I3ce68e4bc89db285fd81a713dadd54fb6951491b Signed-off-by: Ravi Pendurty --- .github/workflows/gerrit-verify.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index ddbea44..02893e3 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -96,7 +96,43 @@ jobs: ENV_VARS: ${{ toJSON(vars) }} SAVE_DOCKER_ARTIFACTS: true DOCKER_ARTIFACTS_TO_SAVE: "o-ran-sc/oam-oam-controller/sdnr-image:latest o-ran-sc/oam-oam-controller/sdnr-web-image:latest" + + deploy-test: + needs: [maven-verify] + runs-on: ubuntu-latest + steps: + - name: Download docker artifacts + uses: actions/download-artifact@v4 + with: + name: docker-image + + - name: Display structure of downloaded files + run: ls -R + + - name: Load Docker image(s) + run: docker load -i docker-images.tar + - name: Checkout code + uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9 + with: + gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} + gerrit-url: ${{ vars.GERRIT_URL }} + repository: ${{ inputs.GERRIT_PROJECT }} + delay: "0s" + + - name: Display structure of checkedout files + run: ls -R + + - name: Run Tests + run: CICD/bin/setup.sh + + - name: Print test log + if: always() + run: | + echo "Test log dump - START" + cat CICD/log/testsuite.log + echo "Test log dump - END" + vote: if: ${{ always() }} # yamllint enable rule:line-length -- 2.16.6