Skip to content

github: add build and test action #1

github: add build and test action

github: add build and test action #1

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
- name: JUnit test report
uses: mikepenz/action-junit-report@v5
if: always()
with:
check_name: junit test report
report_paths: "**/target/surefire-reports/*.xml"