Skip to content

CI

CI #396

Workflow file for this run

# 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
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "01 13 1-7 * 5" # catch SNAPSHOT breaking changes
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ['17', '21']
distribution: ['zulu', 'oracle', 'corretto', 'liberica']
include:
- java-version: '17'
distribution: 'temurin'
- java-version: '17'
distribution: 'microsoft'
# - java-version: '22-ea'
# distribution: zulu
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Build Lyo Client samples
run: |
mvn -B clean verify --file lyo-client-samples/pom.xml
build-legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'zulu' # EOL in 2030 for Azul JDK 1.8
java-version: '8'
- name: Build OAuth Discovery application
run: |
mvn -B clean verify --file client-oauth-discovery-dui/pom.xml
- name: Build OAuth Two-legged samples
run: |
mvn -B clean verify --file oauth-twolegged-sample/oauth.sample/pom.xml
mvn -B clean verify --file oauth-twolegged-sample/oauth-cli-helper/pom.xml