Add github action for continuous inspection
This commit is contained in:
31
.github/workflows/continuous-inspection-build.yml
vendored
Normal file
31
.github/workflows/continuous-inspection-build.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Continuous inspection build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 10 * * *' # Once per day at 10am UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
code-quality-analysis:
|
||||
name: code quality analysis report
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Analyse test coverage with Jacoco
|
||||
run: mvn -P test-coverage verify
|
||||
|
||||
- name: Analyse code quality with Sonar
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
|
||||
run: mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN
|
||||
|
||||
Reference in New Issue
Block a user