Update registry.redhat.io/ubi8/ubi-minimal Docker digest to c12e67a #369
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TrustyAI Explainability - CI | |
on: [ push, pull_request ] | |
jobs: | |
event-connect-build: | |
env: | |
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" | |
MAVEN_ARGS: "-nsu -fae -e" | |
concurrency: | |
group: pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }}-${{ matrix.maven-version }} | |
cancel-in-progress: true | |
timeout-minutes: 45 | |
strategy: | |
matrix: | |
# configure with [ 'ubuntu-latest', 'windows-latest' ] to enable Windows builds | |
include: | |
- { os: ubuntu-22.04, shell: bash } # Pinned to Ubuntu 22.04 LTS. Change if necessary. | |
java-version: [ 17 ] | |
# Maven maintained core versions, https://maven.apache.org/docs/history.html | |
maven-version: [ '3.6.3', '3.8.8', '3.9.2' ] | |
fail-fast: false | |
# https://docs.github.com/en/actions/using-jobs/setting-default-values-for-jobs#setting-default-shell-and-working-directory | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} {0} | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven ${{ matrix.maven-version }}- Build and Test | |
steps: | |
- name: Disk space report before modification | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
echo "Available storage:" | |
df -h | |
# Inspired to maximize-build-space action https://github.com/easimon/maximize-build-space | |
- name: Free disk space (remove dotnet, android and haskell) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /opt/ghc | |
- name: Disk space report after modification | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
echo "Available storage:" | |
df -h | |
- name: Support long paths | |
# set to use cmd for windows not pwsh | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: git config --system core.longpaths true | |
- name: Set up JDK + Maven version | |
# include actions/checkout, actions/setup-java, actions/cache, see https://github.com/s4u/setup-maven-action/blob/main/action.yml | |
uses: s4u/[email protected] | |
with: | |
java-version: ${{ matrix.java-version }} | |
maven-version: ${{ matrix.maven-version }} | |
- name: Run mvn package | |
run: mvn package -Dmaven.test.skip=true -Dformatter.skip=true | |
- name: Validate Formatting | |
# execute formatting validation only on Ubuntu to avoid issues with CR LF | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: mvn net.revelc.code.formatter:formatter-maven-plugin:validate | |
- name: Run Test Suite | |
run: mvn verify | |
- name: Check Test Report without publishing | |
if: ${{ always() }} | |
uses: scacap/[email protected] | |
with: | |
skip_publishing: true | |
check_name: Test Results | |
fail_on_test_failures: true | |
fail_if_no_tests: false |