4 # yamllint disable-line rule:truthy
9 description: "Branch that change is against"
13 description: "The ID for the change"
17 description: "The Gerrit number"
21 description: "URL to the change"
25 description: "Type of Gerrit event"
28 GERRIT_PATCHSET_NUMBER:
29 description: "The patch number for the change"
32 GERRIT_PATCHSET_REVISION:
33 description: "The revision sha"
37 description: "Project in Gerrit"
41 description: "Gerrit refspec of change"
46 description: "Sonar Cloud access token"
50 # yamllint disable-line rule:line-length
51 group: gerrit-merge-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
52 cancel-in-progress: true
56 runs-on: ubuntu-latest
58 - name: Notify job start
59 # yamllint disable-line rule:line-length
60 uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
62 host: ${{ vars.GERRIT_SERVER }}
63 username: ${{ vars.GERRIT_SSH_USER }}
64 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
65 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
66 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
67 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
70 - name: Allow replication
73 call-gerrit-tox-and-sonarcloud:
74 runs-on: ubuntu-latest
77 - name: Run Tox verify
78 # yamllint disable-line rule:line-length
79 uses: lfit/releng-reusable-workflows/.github/actions/maven-build-action@main
82 - name: Run SonarCloud Scan
83 uses: sonarsource/sonarcloud-github-action@master
85 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
89 -Dsonar.build.sourceEncoding=UTF-8
90 -Dsonar.organization=o-ran-sc
91 -Dsonar.projectBaseDir=.
92 -Dsonar.projectKey=o-ran-sc_com-pylog
93 -Dsonar.projectName=com-pylog
94 -Dsonar.python.coverage.reportPaths=./coverage.xm
95 -Dsonar.sources=mdclogpy
100 needs: [notify, call-gerrit-tox-and-sonarcloud]
101 runs-on: ubuntu-latest
103 - name: Get workflow conclusion
104 uses: technote-space/workflow-conclusion-action@v3
105 - name: Report workflow conclusion
106 # yamllint disable-line rule:line-length
107 uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
109 host: ${{ vars.GERRIT_SERVER }}
110 username: ${{ vars.GERRIT_SSH_USER }}
111 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
112 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
113 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
114 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
115 vote-type: ${{ env.WORKFLOW_CONCLUSION }}