-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create network modification server (#1)
Signed-off-by: Franck LECUYER <[email protected]>
- Loading branch information
1 parent
d798216
commit e44b56c
Showing
13 changed files
with
1,049 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
repository_dispatch: | ||
types: network_store_updated | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Checkout network store sources | ||
uses: actions/checkout@v1 | ||
with: | ||
repository: powsybl/powsybl-network-store | ||
ref: refs/heads/master | ||
|
||
- name: Build and install network store client with Maven | ||
run: mvn --batch-mode -Pclient -DskipTests=true --file ../powsybl-network-store/pom.xml install | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build with Maven | ||
run: mvn --batch-mode -P jacoco,perform-integration-test install | ||
|
||
- name: Run SonarCloud analysis | ||
run: > | ||
mvn --batch-mode -DskipTests sonar:sonar | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.organization=gridsuite | ||
-Dsonar.projectKey=org.gridsuite:network-modification-server | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Build Docker image | ||
if: github.ref == 'refs/heads/master' | ||
run: > | ||
mvn --batch-mode jib:build | ||
-Djib.httpTimeout=60000 | ||
-Djib.to.image=docker.io/gridsuite/network-modification-server | ||
-Djib.to.auth.username=powsyblci | ||
-Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Broadcast update event | ||
if: github.ref == 'refs/heads/master' | ||
uses: gridsuite/broadcast-event@master | ||
with: | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
event-type: network_modification_server_updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
target/ | ||
|
||
# IntelliJ | ||
/.idea | ||
*.iml |
Oops, something went wrong.