From 7d443a95fab339b0043d40cb001a1abdc9ae49ab Mon Sep 17 00:00:00 2001 From: lisrte Date: Fri, 17 Jan 2025 17:02:22 +0100 Subject: [PATCH] CI config for optional_duplicate_timeseries_index core branch Signed-off-by: lisrte --- .github/workflows/maven.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 909d4fa1b..d73f14812 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,28 +18,40 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v1 + uses: actions/checkout@v4 + with: + path: main + + - name: Checkout powsybl-core branch + uses: actions/checkout@v4 + with: + repository: powsybl/powsybl-core + ref: refs/heads/optional_duplicate_timeseries_index + path: powsybl-core - name: Set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 + - name: Build and install powsybl-core with Maven + run: mvn --batch-mode -DskipTests=true --file ./powsybl-core/pom.xml install + - name: Build with Maven if: matrix.os == 'ubuntu-latest' - run: mvn --batch-mode -Pintegration-tests,jacoco install + run: mvn --batch-mode -Pintegration-tests,jacoco --file ./main/pom.xml install - name: Build with Maven if: matrix.os != 'ubuntu-latest' - run: mvn --batch-mode install + run: mvn --batch-mode --file ./main/pom.xml install - name: Run SonarCloud analysis if: matrix.os == 'ubuntu-latest' run: > - mvn --batch-mode -DskipTests sonar:sonar + mvn --batch-mode -DskipTests --file ./main/pom.xml sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=powsybl-ci-github -Dsonar.projectKey=com.powsybl:powsybl-dynawo env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file