forked from kiegroup/optaweb-vehicle-routing
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (58 loc) · 2.36 KB
/
pull_request.yml
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
51
52
53
54
55
56
57
58
59
name: Build Chain
on:
pull_request:
branches:
- main
paths-ignore:
- 'LICENSE*'
- 'CODEOWNERS'
- '.gitignore'
- '.gitattributes'
- '.travis.yml'
- '*.md'
- '*.adoc'
- '*.txt'
- 'runOnOpenShift.sh'
- 'runLocally.sh'
- 'ide-configuration/**'
jobs:
build-chain:
concurrency:
group: pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }}
cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [11, 17, 18]
maven-version: ['3.8.1']
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven
steps:
- name: Clean Disk Space
uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Support long paths
if: ${{ matrix.os == 'windows-latest' }}
uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main
- name: Java and Maven Setup
uses: kiegroup/kogito-pipelines/.ci/actions/maven@main
with:
java-version: ${{ matrix.java-version }}
maven-version: ${{ matrix.maven-version }}
cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
- name: Build Chain
uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main
with:
definition-file: https://raw.githubusercontent.com/kiegroup/kogito-pipelines/%{process.env.GITHUB_BASE_REF.replace(/(\d*)\.(.*)\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)}/.ci/pull-request-config.yaml
annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Surefire Report
uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main
if: ${{ always() }}
- name: Check uncommitted changes
if: ${{ always() }}
# Check that Git working tree is clean after running `npm install` via the frontend-maven-plugin.
# The `git` command exits with 1 and fails the build if there are any uncommitted changes.
run: git diff HEAD --exit-code
working-directory: kiegroup_optaweb_vehicle_routing/optaweb-vehicle-routing