Skip to content

FIPS-9783/FIPS-10074 :: mark files or projects causing exceptions in … #357

FIPS-9783/FIPS-10074 :: mark files or projects causing exceptions in …

FIPS-9783/FIPS-10074 :: mark files or projects causing exceptions in … #357

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
eclipse-release: ['2022-12', '2023-03']
env:
integration-test-release: '2020-03'
steps:
- uses: actions/checkout@v2
- name: Set up JDKs
uses: actions/setup-java@v3
with:
java-version: |
8
11
17
distribution: 'adopt'
cache: maven
- name: build config
run: mvn -B -V install --settings settings.xml --file codequality-config/pom.xml
- name: build targets
run: mvn -B -V clean install -pl :targets -am --settings settings.xml
- name: Check compiles
run: mvn -B -V clean package --settings settings.xml --file pom.xml -T1C -Dtarget-platform=eclipse-${{ matrix.eclipse-release }} -DskipTests -Dtycho.p2.transport.min-cache-minutes=1440 --global-toolchains ${{ github.workspace }}/.github/toolchains.xml
if: ${{ matrix.eclipse-release != env.integration-test-release }}
- name: Run Integration Tests
uses: GabrielBB/xvfb-action@v1
with:
run: mvn -B clean verify --settings settings.xml --file pom.xml -T1C -Dtarget-platform=eclipse-${{ matrix.eclipse-release }} -Dmaven.test.failure.ignore=true -Dtycho.p2.transport.min-cache-minutes=1440 --global-toolchains ${{ github.workspace }}/.github/toolchains.xml
if: ${{ matrix.eclipse-release == env.integration-test-release }}
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: test-results-${{ matrix.eclipse-release }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml
if: ${{ matrix.eclipse-release == env.integration-test-release }}