This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Github Actions instead Travis/AppVeyor (#258)
* Enable Github Actions instead Travis/AppVeyor Signed-off-by: Mathieu BAGUE <mathieu.bague@rte-france.com>
- Loading branch information
Showing
4 changed files
with
46 additions
and
44 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,45 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Build OS ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- name: Set up JDK 1.8 | ||
uses: geofjamg/setup-java@master | ||
with: | ||
java-version: 1.8 | ||
java-package: jdk+fx | ||
|
||
- name: Checkout powsybl-core | ||
uses: actions/checkout@v1 | ||
with: | ||
repository: powsybl/powsybl-core | ||
ref: refs/heads/master | ||
|
||
- name: Build powsybl-core with Maven | ||
run: mvn --batch-mode -DskipTests install | ||
working-directory: ../powsybl-core | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build with Maven | ||
run: mvn --batch-mode package | ||
|
||
- name: Run SonarCloud analysis | ||
if: matrix.os == 'ubuntu-latest' | ||
run: > | ||
mvn --batch-mode -Pjacoco verify sonar:sonar | ||
-Dsonar.host.url=https://sonarcloud.io | ||
-Dsonar.organization=powsybl-ci-github | ||
-Dsonar.projectKey=com.powsybl:powsybl-gse | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.