Skip to content

Commit

Permalink
Create git hub actions for a1-policy in ONAP to run FTC tests on a1pm…
Browse files Browse the repository at this point in the history
…s 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>
  • Loading branch information
ravitejakarumuri committed Oct 15, 2024
1 parent c277141 commit 651a7e2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/gerrit-oran-functional-test-case-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -85,14 +85,21 @@ 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: |
git clone https://gerrit.o-ran-sc.org/r/nonrtric
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 ]
Expand All @@ -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 }}
Expand Down

0 comments on commit 651a7e2

Please sign in to comment.