-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (56 loc) · 1.91 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
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@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
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