Skip to content

Commit d3bb0de

Browse files
committed
Add github action for continuous inspection
1 parent 80e653f commit d3bb0de

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Continuous inspection build
2+
3+
on:
4+
schedule:
5+
- cron: '0 10 * * *' # Once per day at 10am UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
code-quality-analysis:
10+
name: code quality analysis report
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: 'maven'
22+
23+
- name: Analyse test coverage with Jacoco
24+
run: mvn -P test-coverage verify
25+
26+
- name: Analyse code quality with Sonar
27+
env:
28+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29+
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
30+
run: mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN
31+

0 commit comments

Comments
 (0)