Skip to content

Java CI Snapshots

Java CI Snapshots #937

# 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:
- 23.09-SNAPSHOT
- 22.06.8-SNAPSHOT
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11 for Build
uses: actions/setup-java@v1
with:
java-version: 11
- 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@v1
with:
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v1
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@v2
if: failure()
with:
name: test-output
path: coherence.eclipse.plugin.tests/**/target/surefire-reports/**/*
- name: Coherence Eclipse Plugin ZIP
uses: actions/upload-artifact@v2
with:
name: coherence-eclipse-plugin
path: ./coherence.eclipse.plugin.repository/target/coherence-eclipse-plugin-repository-*.zip