11
11
12
12
jobs :
13
13
build :
14
- strategy :
15
- fail-fast : false
16
- matrix :
17
- maven : [3.3.9, 3.5.4, 3.6.3, 3.8.1]
18
14
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif
19
15
if : github.repository == 'JacORB/JacORB' && github.event_name == 'pull_request'
20
16
runs-on : ubuntu-latest
@@ -27,18 +23,19 @@ jobs:
27
23
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28
24
restore-keys : |
29
25
${{ runner.os }}-maven-
30
- - name : Set up JDK 11
26
+ - name : Set up JDK 8
31
27
uses : actions/setup-java@v1
32
28
with :
33
- java-version : 11
29
+ java-version : 8
34
30
- name : Set up Maven
35
31
uses : stCarolas/setup-maven@v4
36
32
with :
37
- maven-version : ${{ matrix.maven }}
33
+ maven-version : 3.6.3
38
34
- name : Build with Maven
39
- run : mvn -B -V -Dtravis-ci=true -DskipJavadoc=true -DskipPDFGeneration clean install
40
- # - name: Setup tmate session
41
- # uses: mxschmitt/action-tmate@v3
35
+ run : mvn -B -V -DskipPDFGeneration clean install
36
+ - name : Setup tmate session
37
+ uses : mxschmitt/action-tmate@v3
38
+ if : ${{ failure() }}
42
39
- name : Codecov
43
40
uses : codecov/codecov-action@v1
44
41
@@ -54,10 +51,14 @@ jobs:
54
51
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
55
52
restore-keys : |
56
53
${{ runner.os }}-maven-
57
- - name : Set up JDK 11
54
+ - name : Set up JDK 8
58
55
uses : actions/setup-java@v1
59
56
with :
60
- java-version : 11
57
+ java-version : 8
58
+ - name : Set up Maven
59
+ uses : stCarolas/setup-maven@v4
60
+ with :
61
+ maven-version : 3.6.3
61
62
# https://github.com/marketplace/actions/maven-setings-action
62
63
- name : Maven Settings
63
64
uses : s4u/maven-settings-action@v2
71
72
"password": "${{ secrets.SONATYPE_PASSWORD }}"
72
73
}]
73
74
- name : Deploy Snapshot
74
- run : mvn -B -V org.apache.maven.plugins:maven-source-plugin:jar-no-fork -Dtravis-ci=true -DskipJavadoc =true -DskipPDFGeneration deploy
75
+ run : mvn -B -V org.apache.maven.plugins:maven-source-plugin:jar-no-fork -DskipPDFGeneration deploy -DskipTests =true
75
76
- name : Codecov
76
77
uses : codecov/codecov-action@v1
0 commit comments