-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (67 loc) · 2.45 KB
/
ci-build.yaml
File metadata and controls
80 lines (67 loc) · 2.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright (c) 2020, 2025 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.
# ---------------------------------------------------------------------------
# Coherence Eclipse Plugin GitHub Actions CI build.
# ---------------------------------------------------------------------------
name: Java CI
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- 25.03.1
- 22.06.12
- 14.1.2-0-2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK for Build
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Print Versions
run: mvn -version && ant -version
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Using Default Version (22.09)
shell: bash
run: |
mvn --file pom.xml --batch-mode -e -DskipTests clean install
cp coherence.eclipse.plugin.tests/build.properties coherence.eclipse.plugin.tests/build.properties.orig
- name: Verify
shell: bash
env:
COH_VERSION: ${{ matrix.version }}
run: |
echo "Running verify against $COH_VERSION"
echo "Update build.properties to $COH_VERSION"
cat coherence.eclipse.plugin.tests/build.properties.orig | sed 's/22\.09/'$COH_VERSION'/' > coherence.eclipse.plugin.tests/build.properties
echo "Using the following build.properties"
echo '==================='
cat coherence.eclipse.plugin.tests/build.properties
echo '==================='
mvn --file pom.xml --batch-mode -e -Dtycho.testArgLine="-Dcoherence.version=$COH_VERSION" -Dcoherence.version=$COH_VERSION verify
- name: Build Artifacts test logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-output-${{ matrix.version }}
path: coherence.eclipse.plugin.tests/**/target/surefire-reports/**/*
- name: Coherence Eclipse Plugin ZIP
uses: actions/upload-artifact@v4
with:
name: coherence-eclipse-plugin-${{ matrix.version }}
path: ./coherence.eclipse.plugin.repository/target/coherence-eclipse-plugin-repository-*.zip