Skip to content

Commit

Permalink
Add github action to test PRs prior to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Dec 17, 2024
1 parent def3631 commit 2d27881
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
java-version: [ 8 ]

runs-on: ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}

steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Build with Maven
id: build_with_maven
run: |
mvn clean verify --batch-mode --file pom.xml

0 comments on commit 2d27881

Please sign in to comment.