-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
218 changed files
with
6,289 additions
and
4,070 deletions.
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,89 @@ | ||
# © 2024. TU Dortmund University, | ||
# Institute of Energy Systems, Energy Efficiency and Energy Economics, | ||
# Research group Distribution grid planning and operation | ||
# | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
branches: | ||
- main | ||
- dev | ||
- 'hotfix/*' | ||
- 'rel/*' | ||
- 'dependabot/*' | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
buildAndTest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Check Branch | ||
run: | | ||
if [ "${{ github.event_name }}" == "pull_request" ]; then | ||
branchName="${{ github.head_ref }}" | ||
else | ||
branchName="${{ github.ref_name }}" | ||
fi | ||
if [[ "$branchName" == refs/heads/* ]]; then | ||
branchName="${branchName#refs/heads/}" | ||
fi | ||
./gradlew checkBranchName -PbranchName="$branchName" | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Build Project | ||
run: ./gradlew --refresh-dependencies clean assemble spotlessCheck | ||
|
||
- name: Run Tests | ||
run: ./gradlew test reportScoverage checkScoverage | ||
|
||
- name: Build Scala-Docs | ||
run: ./gradlew scaladoc | ||
|
||
- name: SonarQube | ||
run: | | ||
./gradlew sonar \ | ||
-Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} \ | ||
-Dsonar.host.url=${{ vars.SONAR_HOST_URL }} \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
SONAR_STATUS_URL="${{ vars.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=${{ vars.SONAR_PROJECT_KEY }}" | ||
QUALITY_GATE_STATUS=$(curl -s -u "${{ secrets.SONAR_TOKEN }}:" "$SONAR_STATUS_URL" | jq -r '.projectStatus.status') | ||
echo "Quality Gate Status: $QUALITY_GATE_STATUS" | ||
if [ "$QUALITY_GATE_STATUS" != "OK" ]; then | ||
echo "Quality Gate failed!" | ||
exit 1 | ||
fi | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' | ||
run: | | ||
./gradlew publish\ | ||
-Puser=${{ secrets.MAVENCENTRAL_USER }} \ | ||
-Ppassword=${{ secrets.MAVENCENTRAL_PASS }} \ | ||
-Psigning.keyId=${{ secrets.MAVENCENTRAL_SIGNINGKEYID }} \ | ||
-Psigning.password=${{ secrets.MAVENCENTRAL_SIGNINGPASS }} \ | ||
-Psigning.secretKeyRingFile=${{ secrets.MAVENCENTRAL_SIGNINGKEY }} |
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
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,41 @@ | ||
cff-version: 1.2.0 | ||
title: SIMONA | ||
message: "If you use this software, please cite it as below." | ||
type: software | ||
authors: | ||
- family-names: Hiry | ||
given-names: Johannes | ||
orcid: https://orcid.org/0000-0002-1447-0607 | ||
- family-names: Kittl | ||
given-names: Chris | ||
orcid: https://orcid.org/0000-0002-1187-0568 | ||
- family-names: Sen Sarma | ||
given-names: Debopama | ||
orcid: https://orcid.org/0000-0003-3311-3020 | ||
- family-names: Oberließen | ||
given-names: Thomas | ||
orcid: https://orcid.org/0000-0001-5805-5408 | ||
- family-names: Peter | ||
given-names: Sebastian | ||
orcid: https://orcid.org/0000-0001-6311-6113 | ||
- family-names: Feismann | ||
given-names: Daniel | ||
orcid: https://orcid.org/0000-0002-3531-9025 | ||
- family-names: Bao | ||
given-names: Johannes | ||
orcid: https://orcid.org/0009-0008-3641-6469 | ||
- family-names: Hohmann | ||
given-names: Julian | ||
- family-names: Staudt | ||
given-names: Marius | ||
repository-code: https://github.com/ie3-institute/simona | ||
url: https://simona.ie3.e-technik.tu-dortmund.de | ||
repository-artifact: https://central.sonatype.com/artifact/com.github.ie3-institute/simona | ||
keywords: | ||
- agent-based | ||
- discrete-event simulation | ||
- powerflow | ||
- electricity distribution grid | ||
license: BSD-3-Clause | ||
version: 3.0.0 | ||
date-released: 2023-08-07 |
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
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
Oops, something went wrong.