Skip to content

refimpl@master (Lyo@b-sonar; comment: n/a) #37

refimpl@master (Lyo@b-sonar; comment: n/a)

refimpl@master (Lyo@b-sonar; comment: n/a) #37

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: CI acceptance tests (MANUAL)
run-name: "refimpl@${{ github.ref_name }} (Lyo@${{ github.event.inputs.lyoBranch }}; comment: ${{ inputs.comment }})"
on:
workflow_dispatch:
inputs:
lyoBranch:
description: 'Lyo branch to test on'
required: true
default: 'master'
comment:
description: 'comment, e.g. PR number'
default: 'n/a'
jobs:
build:
runs-on: [ubuntu-latest]
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
jdk: ['21']
distribution: ['temurin', 'corretto', 'microsoft', 'adopt-openj9', 'zulu', 'liberica' ]
experimental: [false]
include:
- jdk: '17'
distribution: 'temurin'
experimental: false
- jdk: '22'
distribution: 'zulu'
experimental: true
- jdk: '23-ea'
distribution: 'zulu'
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
with:
repository: eclipse/lyo
ref: "${{ github.event.inputs.lyoBranch }}"
path: lyo-trunk
- uses: actions/checkout@v4
with:
path: main
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: Build Lyo locally (branch ${{ github.event.inputs.lyoBranch }})
run: mvn -B clean install --file lyo-trunk/pom.xml -DskipTests -Dmaven.javadoc.skip=true
- name: Run tests on RefImpl
run: mvn -B -Pacceptance clean verify --file main/src/pom.xml
docker-compose-e2e:
runs-on: [ubuntu-latest]
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# jdk: ['11']
# distribution: ['temurin', 'corretto', 'microsoft', 'adopt-openj9', 'zulu']
# experimental: [false]
include:
- jdk: '17'
distribution: 'zulu'
experimental: false
# - jdk: '19'
# distribution: 'zulu'
# experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
with:
repository: eclipse/lyo
ref: "${{ github.event.inputs.lyoBranch }}"
path: lyo-trunk
- uses: actions/checkout@v4
with:
path: main
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: Build Lyo locally (branch ${{ github.event.inputs.lyoBranch }})
run: mvn -B clean install --file lyo-trunk/pom.xml -DskipTests -Dmaven.javadoc.skip=true
- name: Build with Maven
run: mvn -B package --file main/src/pom.xml
- name: Build and Start Docker Compose
working-directory: main/src/
run: |
docker-compose build
docker-compose up -d
- name: Wait for Services to Start
run: sleep 30 # Adjust as needed
- name: Test RM SPC endpoint with curl
run: curl -fsSL --user "admin:admin" http://localhost:8800/services/catalog/singleton
continue-on-error: true # Continue even if curl command fails
- name: Tear down Docker Compose
working-directory: main/src/
run: docker-compose down
docker-compose-e2e-tomcat:
runs-on: [ubuntu-latest]
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# jdk: ['11']
# distribution: ['temurin', 'corretto', 'microsoft', 'adopt-openj9', 'zulu']
# experimental: [false]
include:
- jdk: '17'
distribution: 'zulu'
experimental: false
# - jdk: '19'
# distribution: 'zulu'
# experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
with:
repository: eclipse/lyo
ref: "${{ github.event.inputs.lyoBranch }}"
path: lyo-trunk
- uses: actions/checkout@v4
with:
path: main
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: Build Lyo locally (branch ${{ github.event.inputs.lyoBranch }})
working-directory: lyo-trunk/
run: mvn -B clean install -DskipTests -Dmaven.javadoc.skip=true
- name: Build with Maven
working-directory: main/src/
run: mvn -B package -Pwith-jstl-impl
- name: Build and Start Docker Compose
working-directory: main/src/
run: |
docker-compose -f docker-compose.tomcat.yml build
docker-compose -f docker-compose.tomcat.yml up -d
- name: Wait for Services to Start
run: sleep 30 # Adjust as needed
- name: Test RM SPC endpoint with curl
run: curl -fsSL --user "admin:admin" http://localhost:8800/services/catalog/singleton
- name: Tear down Docker Compose
working-directory: main/src/
run: docker-compose -f docker-compose.tomcat.yml down