Skip to content

Commit

Permalink
Add GitHub Action to verify the Java code
Browse files Browse the repository at this point in the history
- Ensures that it compiles

- Checks formatting
  • Loading branch information
datalogics-kam committed Sep 11, 2023
1 parent 4be50e8 commit 1b3d154
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/verify-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: verify-java

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
#
steps:
# This step uses the `actions/checkout` action to download a copy of your repository on the runner.
- uses: actions/checkout@v3
# This step uses the `actions/setup-java` action to configure the Eclipse Temurin (Java) 17 JDK by
# Eclipse Adoptium.
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
# The "Build with Maven" step runs the Maven `verify` target in non-interactive mode to ensure that your
# code builds, tests pass, and a package can be created.
# The -f option indicates the root of the Maven project, where the pom.xml is located
- name: Build with Maven
run: mvn -f 'Java/Single Calls' --show-version --batch-mode --update-snapshots verify

0 comments on commit 1b3d154

Please sign in to comment.