Skip to content

Commit

Permalink
Create network modification server (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Franck LECUYER <[email protected]>
  • Loading branch information
FranckLecuyer authored Apr 14, 2020
1 parent d798216 commit e44b56c
Show file tree
Hide file tree
Showing 13 changed files with 1,049 additions and 1 deletion.
58 changes: 58 additions & 0 deletions .github/workflows/maven.yml
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target/

# IntelliJ
/.idea
*.iml
Loading

0 comments on commit e44b56c

Please sign in to comment.