Skip to content

Commit

Permalink
Update Test Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed May 22, 2024
1 parent fc97825 commit d5cc274
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

jobs:
deploy:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +26,22 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Testing the Java code
run: mvn install
run: mvn package

# Only run for pull request on main or if pushed to develop
compile_native:
if: github.base_ref == "main" || github.event_name == "push"
name: Test Native Executable Compilation
runs-on: ubuntu-latest
needs: find_version
steps:
- uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
cache: 'maven'
- name: 'Generate configuration files'
run: './graalvm/generate-config.sh'
- name: 'Compile native-binary'
run: 'mvn -DskipTests package -Pnative'

0 comments on commit d5cc274

Please sign in to comment.