Skip to content

Commit 809f204

Browse files
committed
test
Signed-off-by: BOUHOURS Antoine <antoine.bouhours@rte-france.com>
1 parent 4586950 commit 809f204

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/maven.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'branch-testtt'
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: 21
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

0 commit comments

Comments
 (0)