Skip to content

Prepare v5.3.0 release #3487

Prepare v5.3.0 release

Prepare v5.3.0 release #3487

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- 'release-v**'
- 'full-sonar-analysis-**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
pull_request:
permissions: {}
jobs:
build:
name: Build OS ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event.pull_request.head.repo.fork == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build with Maven (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: ./mvnw -B -ntp -Pjacoco install
- name: Build with Maven (Windows)
if: matrix.os == 'windows-latest'
run: mvnw.cmd -B -ntp verify -Dpowsybl.checks.skip=true
shell: cmd
- name: Build with Maven (MacOS)
if: matrix.os == 'macos-latest'
run: ./mvnw -B -ntp verify -Dpowsybl.checks.skip=true
- name: Run SonarCloud analysis
if: matrix.os == 'ubuntu-latest'
run: >
./mvnw -B -ntp -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=com.powsybl:powsybl-diagram
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}