Skip to content

chore: add a CI job with maven install #3

chore: add a CI job with maven install

chore: add a CI job with maven install #3

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Checkout sources
uses: actions/checkout@v1
- name: Build with Maven
run: mvn --batch-mode -P jacoco verify
- name: Run SonarCloud analysis
run: >
mvn --batch-mode sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=powsybl_powsybl-ws-commons
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}