We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe12bb commit 11215adCopy full SHA for 11215ad
.github/workflows/sonar.yml
@@ -0,0 +1,29 @@
1
+name: Sonar
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+env:
9
+ CI: true
10
11
+jobs:
12
+ code-scan:
13
+ name: Code Scan
14
+ if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'project-openubl' }}
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: actions/setup-java@v3
19
+ with:
20
+ distribution: "temurin"
21
+ java-version: 11
22
+ cache: maven
23
+ - name: Build with Maven and Coverage/Sonar
24
+ run: mvn verify -P coverage,sonar
25
+ env:
26
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
28
+ - name: Codecov metrics
29
+ uses: codecov/codecov-action@v3
0 commit comments