Skip to content

Bump org.apache.maven.plugins:maven-enforcer-plugin #84

Bump org.apache.maven.plugins:maven-enforcer-plugin

Bump org.apache.maven.plugins:maven-enforcer-plugin #84

Workflow file for this run

# XOAI Continuous Integration/Build via GitHub Actions
# Concepts borrowed from
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-maven
name: Build
# Run this Build for all pushes / PRs to current branch
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
runs-on: ubuntu-latest
env:
# Give Maven 1GB of memory to work with
MAVEN_OPTS: "-Xmx1024M"
name: Run Tests
steps:
# https://github.com/actions/checkout
- name: Checkout codebase
uses: actions/checkout@v4
# https://github.com/actions/setup-java
- name: Install JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
# Run parallel Maven builds based on the above 'strategy.matrix'
- name: Run Maven Tests
run: mvn --no-transfer-progress -V test
# If previous step failed, save results of tests to downloadable artifact for this job
# (This artifact is downloadable at the bottom of any job's summary page)
- name: Upload Results of Test to Artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: Test results
path: "**/target/surefire-reports/**"