-
Notifications
You must be signed in to change notification settings - Fork 698
51 lines (45 loc) · 1.56 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
# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
#
# For more information about the workflow to build a Java project with Maven, see:
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
name: CI with multiply java versions
steps:
- uses: actions/checkout@v4
##################################################
# Set up multiply java versions
##################################################
- name: Set up java versions
uses: actions/setup-java@v4
with:
# https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks
#
# CAUTION:
# do NOT move specified old version `11.0.3` before version `11`,
# or the version `11.0.3` will not be installed!
# because the old version 11.0.3 satisfies the version 11.
java-version: |
8
11
11.0.3
17
21
distribution: zulu
cache: maven
##################################################
# CI/Build
##################################################
- name: Run integration test with multiply java versions
run: scripts/integration-test.sh