Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test building with GraalVM 17 #1214

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
26 changes: 6 additions & 20 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ ubuntu-latest, windows-latest, macos-latest ]

steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Set up JDK 17
uses: actions/setup-java@v1
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: 17
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build with Maven
if: matrix.os == 'ubuntu-latest'
run: mvn --batch-mode -Pjacoco install -DskipCucumberTests=true

- name: Build with Maven
if: matrix.os != 'ubuntu-latest'
run: mvn --batch-mode install -DskipCucumberTests=true

- name: Run SonarCloud analysis
if: matrix.os == 'ubuntu-latest'
run: >
mvn --batch-mode -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=com.powsybl:open-rao
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/run_cucumber_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: 17
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install OpenRAO with Maven
run: mvn --batch-mode install -DskipTests=true
- name: Run cucumber tests with Maven
Expand Down
Loading
Loading