-
Notifications
You must be signed in to change notification settings - Fork 29
68 lines (54 loc) · 1.66 KB
/
ci.yaml
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
62
63
64
65
66
67
# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
runs-on: ubuntu-latest
timeout-minutes: 20
name: test by multiply java versions
steps:
- uses: actions/checkout@v3
- name: setup java19
uses: actions/setup-java@v3
with:
java-version: 19
distribution: temurin
cache: maven
- name: build and test with java 19
run: >
./mvnw -V --no-transfer-progress
help:evaluate -Dexpression=settings.localRepository
-DperformRelease -P'!gen-sign'
clean install
- name: setup java8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: zulu
cache: maven
- run: ./mvnw -V surefire:test
- name: setup java11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: microsoft
cache: maven
- run: ./mvnw -V surefire:test
- name: setup java17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
cache: maven
- run: ./mvnw -V surefire:test
- name: setup java20
uses: actions/setup-java@v3
with:
java-version: 20-ea
distribution: zulu
cache: maven
- run: ./mvnw -V surefire:test
- name: remove self maven install files
run: rm -rf $HOME/.m2/repository/io/foldright/cffu/