Skip to content

CI: drop publishing of test results #105

CI: drop publishing of test results

CI: drop publishing of test results #105

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Build and test
on:
push:
pull_request:
workflow_dispatch: # Allow running manually from web UI
jobs:
package:
name: Maven Build and Test
runs-on: ubuntu-latest
# Only run on pushes or if pull request from fork
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
permissions:
checks: write # to publish unit test results
steps:
- name: Check out
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build with Maven
# --batch-mode: Disable interactive input, making logs cleaner for CI.
# -show-version: Print Maven and JDK version info.
# --update-snapshots: Force update of snapshot dependencies.
# --errors: Show full error stack traces on failure.
run: ./mvnw --batch-mode -show-version --update-snapshots --errors package