diff options
author | raviteja.karumuri <raviteja.karumuri@est.tech> | 2024-10-15 16:34:23 +0100 |
---|---|---|
committer | raviteja.karumuri <raviteja.karumuri@est.tech> | 2024-10-15 16:57:57 +0100 |
commit | 651a7e2d2bff0283c0c6b67f71f9b7ac0a730c45 (patch) | |
tree | 5e0934ad7650205c09fcbddbc854e1aef2f01c71 | |
parent | c277141c4301ec652c9179ec8e6ae1099f6884bd (diff) |
Create git hub actions for a1-policy in ONAP to run FTC tests on a1pms new review created (extending this to notify job start and report status after job done) - Part 2
Issue-ID: CCSDK-4057
Change-Id: Ia29229b572b1a36b19c490661c620052385dfc8b
Signed-off-by: Raviteja Karumuri <raviteja.karumuri@est.tech>
-rw-r--r-- | .github/workflows/gerrit-oran-functional-test-case-verify.yaml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/gerrit-oran-functional-test-case-verify.yaml b/.github/workflows/gerrit-oran-functional-test-case-verify.yaml index 39495347..3b122bed 100644 --- a/.github/workflows/gerrit-oran-functional-test-case-verify.yaml +++ b/.github/workflows/gerrit-oran-functional-test-case-verify.yaml @@ -52,7 +52,7 @@ jobs: steps: - name: Notify job start # yamllint disable-line rule:line-length - uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6 + uses: lfit/gerrit-review-action@v0.8 with: host: ${{ vars.GERRIT_SERVER }} username: ${{ vars.GERRIT_SSH_USER }} @@ -69,7 +69,7 @@ jobs: steps: # Step 1: Checkout the repository to build - name: Checkout ccsdk-oran Maven Project Repository - uses: lfit/checkout-gerrit-change-action@v0.5 + uses: lfit/checkout-gerrit-change-action@v0.9 with: gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} gerrit-url: ${{ inputs.GERRIT_CHANGE_URL }} @@ -85,7 +85,7 @@ jobs: - name: Build a1-policy-management image with Maven run: | cd a1-policy-management - mvn clean install -DskipTests=true + mvn clean install -Dmaven.test.skip=true # Step 4: Run FTC on new a1-policy review - name: Run FTC tests with the local a1-policy image run: | @@ -93,6 +93,13 @@ jobs: cd nonrtric/test/auto-test chmod +x ./onap-verify-jobs.sh sudo bash ./onap-verify-jobs.sh + # Step 5: uploading the logs + - name: uploading the logs + uses: actions/upload-artifact@v4 + with: + name: FTC-Logs + retention-days: 3 + path: nonrtric/test/auto-test/logs report-status: if: ${{ always() }} needs: [ notify, ftc-run ] @@ -102,7 +109,7 @@ jobs: uses: technote-space/workflow-conclusion-action@v3 - name: Report workflow conclusion # yamllint disable-line rule:line-length - uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6 + uses: lfit/gerrit-review-action@v0.8 with: host: ${{ vars.GERRIT_SERVER }} username: ${{ vars.GERRIT_SSH_USER }} |