|
| 1 | +# owned by test infrastructure team |
| 2 | +name: 'Quality Check Action' |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - main |
| 9 | + |
| 10 | +env: |
| 11 | + GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} |
| 12 | + GH_TOKEN: ${{ github.token }} |
| 13 | + GH_BASE_SHA: ${{ github.event.pull_request.base.sha }} |
| 14 | + GH_HEAD_SHA: ${{ github.event.pull_request.head.sha }} |
| 15 | + GITHUB_REPOSITORY: ${{ github.repository }} |
| 16 | + |
| 17 | +jobs: |
| 18 | + track-unit-test-coverage: |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - name: Track unit-test coverage |
| 22 | + uses: postman-eng/test-infra-scripts/.github/actions/coverage-pr-comment-action@main |
| 23 | + with: |
| 24 | + jobName: 'Unit-Tests' |
| 25 | + coverageType: unit |
| 26 | + squad: api-builder |
| 27 | + artifactSource: coverage-summary-unit |
| 28 | + sonarqube_check: false |
| 29 | + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
| 30 | + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
| 31 | + QE_HEVO_WEBHOOK_URL: ${{ secrets.QE_HEVO_WEBHOOK_URL }} |
| 32 | + QE_HEVO_ACCESS_KEY: ${{ secrets.QE_HEVO_ACCESS_KEY }} |
| 33 | + QE_HEVO_SECRET_KEY: ${{ secrets.QE_HEVO_SECRET_KEY }} |
| 34 | + POSTMAN_NPM_TOKEN: ${{ secrets.POSTMAN_NPM_TOKEN }} |
| 35 | + |
| 36 | + track-integration-test-coverage: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + steps: |
| 39 | + - name: Track integration-test coverage |
| 40 | + uses: postman-eng/test-infra-scripts/.github/actions/coverage-pr-comment-action@main |
| 41 | + with: |
| 42 | + jobName: 'Regression' |
| 43 | + coverageType: integration |
| 44 | + squad: api-builder |
| 45 | + artifactSource: coverage-summary-integration |
| 46 | + sonarqube_check: false |
| 47 | + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
| 48 | + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
| 49 | + QE_HEVO_WEBHOOK_URL: ${{ secrets.QE_HEVO_WEBHOOK_URL }} |
| 50 | + QE_HEVO_ACCESS_KEY: ${{ secrets.QE_HEVO_ACCESS_KEY }} |
| 51 | + QE_HEVO_SECRET_KEY: ${{ secrets.QE_HEVO_SECRET_KEY }} |
| 52 | + POSTMAN_NPM_TOKEN: ${{ secrets.POSTMAN_NPM_TOKEN }} |
0 commit comments