Skip to content

Commit 11215ad

Browse files
Add sonar yaml (#46)
1 parent 5fe12bb commit 11215ad

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sonar.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)