|
8 | 8 | - 'release/**' |
9 | 9 | pull_request: |
10 | 10 | types: [opened, synchronize, reopened] |
11 | | - workflow_call: |
12 | | - inputs: |
13 | | - perform-build: |
14 | | - required: false |
15 | | - type: boolean |
16 | | - build-profile: |
17 | | - required: false |
18 | | - type: string |
19 | | - language: |
20 | | - required: false |
21 | | - type: string |
22 | | - report-unit-test-coverage: |
23 | | - required: false |
24 | | - type: boolean |
25 | | - report-to-atlassian-dashboard: |
26 | | - required: false |
27 | | - type: boolean |
28 | | - quality-product-name: |
29 | | - required: false |
30 | | - type: string |
31 | | - quality-sonar-app-name: |
32 | | - required: false |
33 | | - type: string |
34 | | - quality-testing-type: |
35 | | - required: false |
36 | | - type: string |
37 | | - quality-service-name: |
38 | | - required: false |
39 | | - type: string |
40 | | - quality-junit-report: |
41 | | - required: false |
42 | | - type: string |
43 | | - visibility: |
44 | | - required: false |
45 | | - type: string |
46 | | - udf1: |
47 | | - required: false |
48 | | - type: string |
49 | | - udf2: |
50 | | - required: false |
51 | | - type: string |
52 | | - udf3: |
53 | | - required: false |
54 | | - type: string |
55 | 11 |
|
56 | | - |
57 | | -jobs: |
58 | | - echo-inputs: |
59 | | - name: 'Echo inputs' |
60 | | - runs-on: ubuntu-latest |
61 | | - steps: |
62 | | - - name: Echo inputs |
63 | | - run: | |
64 | | - echo "Sonarqube scan for PRIVATE repositories, running on ubuntu-latest-4-cores runner" |
65 | | - echo "Perform build set to ${{ inputs.perform-build }}" |
66 | | - echo "Build profile set to ${{ inputs.build-profile }}" |
67 | | - echo "Language set to ${{ inputs.language }} " |
68 | | - echo "Visibility set to ${{ inputs.visibility }} [ ${{ github.event.repository.visibility }} ]" |
69 | | - echo "Perform unit test coverage set to ${{ inputs.report-unit-test-coverage }}" |
70 | | - echo "Report to Atlassian dashboard set to ${{ inputs.report-to-atlassian-dashboard }}" |
71 | | - echo "Quality product name set to ${{ inputs.quality-product-name }}" |
72 | | - echo "Quality sonar application name set to ${{ inputs.quality-sonar-app-name }}" |
73 | | - echo "Quality testing type set to ${{ inputs.quality-testing-type }}" |
74 | | - echo "Quality service name set to ${{ inputs.quality-service-name }}" |
75 | | - echo "Quality JUnit report set to ${{ inputs.quality-junit-report }}" |
76 | | - echo "Go private modules set to ${{ inputs.go-private-modules }}" |
77 | | - |
| 12 | +jobs: |
78 | 13 | SonarQube: |
79 | 14 | runs-on: ubuntu-latest |
80 | 15 | permissions: |
@@ -105,29 +40,24 @@ jobs: |
105 | 40 | sleep 30 |
106 | 41 |
|
107 | 42 | - name: SonarQube Scan |
108 | | - if: ${{ inputs.visibility == 'public' }} |
109 | 43 | uses: sonarsource/sonarqube-scan-action@v5.1.0 |
110 | 44 | continue-on-error: true |
111 | 45 | env: |
112 | 46 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
113 | 47 | SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
114 | 48 |
|
115 | 49 | - name: Run SonarQube report generation |
116 | | - if: ${{ inputs.report-to-atlassian-dashboard == true }} |
117 | 50 | uses: Progress-I360/github-action-reporting/sonarqube@main |
118 | 51 | with: |
119 | | - PRODUCT_NAME: ${{ inputs.quality-product-name }} |
120 | | - SONAR_APP_NAME: ${{ inputs.quality-sonar-app-name }} |
| 52 | + PRODUCT_NAME: Builder |
| 53 | + SONAR_APP_NAME: Builder |
121 | 54 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
122 | 55 |
|
123 | 56 | - name: Run report generation |
124 | | - if: ${{ inputs.report-to-atlassian-dashboard == true && inputs.report-unit-test-coverage == true }} |
125 | 57 | uses: Progress-I360/github-action-reporting/automation@main |
126 | 58 | with: |
127 | | - PRODUCT_NAME: ${{ inputs.quality-product-name }} |
128 | | - TESTING_TYPE: ${{ inputs.quality-testing-type }} |
129 | | - SERVICE_NAME: ${{ inputs.quality-service-name }} |
130 | | - JUNIT_REPORT: ${{ inputs.quality-junit-report }} |
| 59 | + PRODUCT_NAME: Builder |
| 60 | + TESTING_TYPE: Unit |
131 | 61 |
|
132 | 62 | - name: Remove Storage Firewall Rule |
133 | 63 | if: always() |
|
0 commit comments