-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (44 loc) · 2.09 KB
/
maven.yml
File metadata and controls
50 lines (44 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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: ['2023-12', '2024-03', '2024-06', '2024-09']
env:
integration-test-release: '2023-12'
steps:
- uses: actions/checkout@v4
- name: Set up JDKs
uses: actions/setup-java@v4
with:
java-version: 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: coactions/setup-xvfb@v1.0.1
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@v4
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 }}