Java CI Snapshots #1093
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2020, 2024 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 Snapshots | |
on: | |
push: | |
branches: | |
- '*' | |
schedule: | |
# Every day at midnight | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
coherenceVersion: | |
- 24.09.1-SNAPSHOT | |
- 22.06.11-SNAPSHOT | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 for Build | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Print Versions | |
run: mvn -version && ant -version | |
- name: Build Using Default Version (22.06) | |
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: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Cache Maven packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Verify | |
shell: bash | |
env: | |
COH_VERSION: ${{ matrix.coherenceVersion }} | |
run: | | |
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.coherenceVersion }} | |
path: coherence.eclipse.plugin.tests/**/target/surefire-reports/**/* | |
- name: Coherence Eclipse Plugin ZIP | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coherence-eclipse-plugin-${{ matrix.coherenceVersion }} | |
path: ./coherence.eclipse.plugin.repository/target/coherence-eclipse-plugin-repository-*.zip |