-
Notifications
You must be signed in to change notification settings - Fork 38
40 lines (37 loc) · 1.21 KB
/
send-sonar-qube-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Send SonarQube Report
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
types: [ opened, synchronize, reopened ]
branches: [ master, "bugfix/*", "feature/*", "release/*" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Jacoco Test Report for :checkout
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Jacoco Test Report for :checkout
run: ./gradlew :checkout:jacocoTestReport
- name: Build Jacoco Test Report for :frames
run: ./gradlew :frames:jacocoTestReport
- name: Send SonarQube Report
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}