From 1faabdc46b09c58fc97d267f200a4cbc1c066393 Mon Sep 17 00:00:00 2001 From: "Kevin A. Mitchell" Date: Mon, 11 Sep 2023 11:19:20 -0500 Subject: [PATCH] Add GitHub Action to verify the Java code - Ensures that it compiles - Checks formatting --- .github/workflows/verify-java.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/verify-java.yml diff --git a/.github/workflows/verify-java.yml b/.github/workflows/verify-java.yml new file mode 100644 index 0000000..3d35bc0 --- /dev/null +++ b/.github/workflows/verify-java.yml @@ -0,0 +1,26 @@ +name: verify-java + +on: + - pull_request + - push + +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' --batch-mode --update-snapshots verify