CI (client) #25
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
name: "CI (client)" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
paths: | |
- '.github/workflows/**' | |
- 'lyo-client-samples/**' | |
schedule: | |
- cron: "01 13 1-7 * 5" # catch SNAPSHOT breaking changes | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }} | |
jobs: | |
build-client-samples: | |
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: '21' | |
distribution: 'liberica' | |
- java-version: '23' | |
distribution: 'oracle' | |
- java-version: '24-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 | |
- name: Enforce code style | |
run: | | |
mvn -B spotless:check --file lyo-client-samples/pom.xml |