-
Notifications
You must be signed in to change notification settings - Fork 9
97 lines (84 loc) · 3.11 KB
/
test-against-released.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Copyright (c) 2020, 2023 Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# ---------------------------------------------------------------------------
# Coherence VisualVM Plugin GitHub Actions CI build.
# ---------------------------------------------------------------------------
name: Java CI - Released versions
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- 14.1.1-0-13
- 14.1.1-0-14
- 22.06.5
- 23.03.1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK 11 for Build
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Print Versions
run: mvn -version && ant -version
- name: Build
shell: bash
run: |
mvn --file pom.xml --batch-mode -e -DskipTests clean install
- name: Verify
shell: bash
run: |
echo "Running verify ${{ matrix.version }}"
mvn --file coherence-visualvm-tests/coherence-visualvm-tests-ce/pom.xml --batch-mode -e -Dcoherence.version=${{ matrix.version }} clean install
- name: Build Artifacts test logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-output
path: coherence-visualvm-tests/**/target/test-output/**/*
- name: Coherence VisualVM Plugin NBM
uses: actions/upload-artifact@v3
with:
name: coherence-visualvm-plugin-nbm
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*.nbm
- name: Coherence VisualVM Plugin Javadoc
uses: actions/upload-artifact@v3
with:
name: coherence-visualvm-plugin-javadoc
path: coherence-visualvm-plugin/target/coherence-visualvm-plugin*javadoc.jar