@@ -58,62 +58,10 @@ jobs:
58
58
if : ${{ matrix.java_allow_illegal_access }}
59
59
run : mvn clean verify javadoc:javadoc -Pjava-allow-illegal-access -B
60
60
61
- integration-test :
62
- name : Run integration test with Java ${{ matrix.java_version }} and Maven ${{ matrix.maven_version }}
63
- runs-on : ubuntu-latest
64
- needs : checkstyle
65
- strategy :
66
- matrix :
67
- java_version : ['11']
68
- maven_version : ['3.1.1', '3.2.5', '3.3.9', '3.5.4', '3.6.3', '3.8.1']
69
-
70
- steps :
71
- - uses : actions/checkout@v2
72
- - name : Set up JDK ${{ matrix.java_version }}
73
- uses : actions/setup-java@v2
74
- with :
75
- distribution : ' zulu'
76
- java-version : ${{ matrix.java_version }}
77
- java-package : jdk
78
- - name : Setup Maven ${{ matrix.maven_version }}
79
- run : /bin/bash -c 'if [[ -n "${{ matrix.maven_version }}" ]]; then \
80
- echo "Downloading Maven ${{ matrix.maven_version }}....";
81
- if [[ "${{ matrix.maven_version }}" == "3.0" ]]; then
82
- wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || terminate 1;
83
- else
84
- wget https://archive.apache.org/dist/maven/maven-3/${{ matrix.maven_version }}/binaries/apache-maven-${{ matrix.maven_version }}-bin.zip || terminate 1;
85
- fi;
86
- unzip -qq apache-maven-${{ matrix.maven_version }}-bin.zip || terminate 1;
87
- export M2_HOME=$PWD/apache-maven-${{ matrix.maven_version }};
88
- export PATH=$M2_HOME/bin:$PATH;
89
- mvn -version;
90
- fi'
91
- - name : Setup M2_HOME Environment variable
92
- run : echo "M2_HOME=${PWD}/apache-maven-${{ matrix.maven_version }}" >> $GITHUB_ENV
93
- - name : Setup System Path to use the custom Maven
94
- run : echo "${M2_HOME}/bin" >> $GITHUB_PATH
95
- - name : Cache local Maven repository
96
- uses : actions/cache@v2
97
- with :
98
- path : ~/.m2
99
- # Include Maven version in key to not use cache from other Maven versions
100
- # in case they corrupt the local repository
101
- # Include it before `-m2-` to prevent other cache actions' restore-keys matching it
102
- key : ${{ runner.os }}-maven-${{ matrix.maven_version }}-m2-${{ hashFiles('**/pom.xml') }}
103
- restore-keys : ${{ runner.os }}-maven-${{ matrix.maven_version }}-m2
104
- - name : Verify Setup of Maven ${{ matrix.maven_version }}
105
- run : bash -c "echo ${M2_HOME}; echo ${PATH}; mvn -version"
106
- - name : Install a test version with Maven
107
- run : mvn clean install -B --settings=./.buildscript/settings.xml
108
- - name : Run the local testversion with Maven
109
- run : mvn clean initialize -B -Pdemo -Dmaven.test.skip=true --settings=./.buildscript/settings.xml
110
- - name : Validate if the testversion has produced the desired output
111
- run : /bin/bash -c '[[ -f maven/target/testing.properties ]] && cat maven/target/testing.properties || exit 1;'
112
-
113
61
coveralls :
114
62
name : Run coveralls
115
63
runs-on : ubuntu-latest
116
- needs : integration- test
64
+ needs : test
117
65
if : ${{ github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') }}
118
66
119
67
steps :
137
85
deploy-snapshot :
138
86
name : Deploy snapshot
139
87
runs-on : ubuntu-latest
140
- needs : integration- test
88
+ needs : test
141
89
if : ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/tags/') && github.ref == 'refs/heads/master' }}
142
90
143
91
steps :
0 commit comments