Skip to content

Commit 81ee0bf

Browse files
author
TheSnoozer
committed
drop the maven integration-tests since they doesn't make any sense to run them for the core-plugin
1 parent 41673ae commit 81ee0bf

File tree

1 file changed

+2
-54
lines changed

1 file changed

+2
-54
lines changed

.github/workflows/default-tests.yml

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -58,62 +58,10 @@ jobs:
5858
if: ${{ matrix.java_allow_illegal_access }}
5959
run: mvn clean verify javadoc:javadoc -Pjava-allow-illegal-access -B
6060

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-
11361
coveralls:
11462
name: Run coveralls
11563
runs-on: ubuntu-latest
116-
needs: integration-test
64+
needs: test
11765
if: ${{ github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') }}
11866

11967
steps:
@@ -137,7 +85,7 @@ jobs:
13785
deploy-snapshot:
13886
name: Deploy snapshot
13987
runs-on: ubuntu-latest
140-
needs: integration-test
88+
needs: test
14189
if: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/tags/') && github.ref == 'refs/heads/master' }}
14290

14391
steps:

0 commit comments

Comments
 (0)