File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - ' main'
7+ - ' test_sonar'
8+ tags :
9+ - ' v[0-9]*'
10+ pull_request :
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Set up JDK 17
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 17
22+
23+ - name : Checkout sources
24+ uses : actions/checkout@v1
25+
26+ - name : Build case server with Maven
27+ run : mvn --batch-mode -Pjacoco install
28+
29+ # We only run the sonar analysis on the server directory because we can't push 2 sonar result to the same sonar repository
30+ # TODO add the analysis on the client when the client and server are split into 2 differents github repo
31+ - name : Run SonarCloud analysis on case server
32+ run : >
33+ mvn --batch-mode -DskipTests sonar:sonar
34+ -Dsonar.host.url=https://sonarcloud.io
35+ -Dsonar.organization=powsybl-ci-github
36+ -Dsonar.projectKey=com.powsybl:powsybl-case-server
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
40+
41+ - name : Broadcast update event
42+ if : github.ref == 'refs/heads/main'
43+ uses : gridsuite/broadcast-event@main
44+ with :
45+ token : ${{ secrets.REPO_ACCESS_TOKEN }}
46+ organizations : gridsuite
47+ event-type : case_server_updated
You can’t perform that action at this time.
0 commit comments