Skip to content

Commit fa4174f

Browse files
committed
AB-454: Add coverage report action
1 parent c791db3 commit fa4174f

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

Comments
 (0)