-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 1.64 KB
/
build-all-jdk21.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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: JDK21 Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
# https://stackoverflow.com/questions/68418857/how-to-cancel-existing-runs-when-a-new-push-happens-on-github-actions-but-only
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.
# On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke.
group: ${{ github.ref == 'refs/heads/master' && format('ci-master-jdk11-{0}', github.sha) || format('ci-jdk11-{0}', github.ref) }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup JDK21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Compilation
run: mvn clean install -T 1C -ntp --activate-profiles shaded,jooq,server,component,agent -Dmaven.javadoc.skip=true -DskipTests
# No use of -T parameter because it will mess up the output message
- name: Dependency Check
run: mvn -ntp dependency:analyze-only
# Execute UT excluding component modules
- name: UT
run: mvn test -P-component