-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 932 Bytes
/
maven.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
name: CI
on:
push:
branches:
- 'main'
- 'release-v**'
pull_request:
jobs:
build:
name: Build OS ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2.3.4
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Build diagram viewer with Maven
run: mvn --file diagram-viewer --batch-mode -P jacoco,checks package
- name: Run SonarCloud analysis on diagram viewer
run: >
mvn --file diagram-viewer --batch-mode -Pjacoco verify sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=com.powsybl:powsybl-dev-tools
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}