Skip to content

Commit

Permalink
Move maven integration tests to dedicated job
Browse files Browse the repository at this point in the history
Similar to what we do with gradle integration tests
  • Loading branch information
geoand committed Aug 28, 2020
1 parent d410dd6 commit de28af8
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ jobs:
java :
- { name: Java8,
java-version: 8,
maven_args: "-pl !integration-tests/gradle -pl !integration-tests/kubernetes/quarkus-standard-way"
maven_args: "-pl !integration-tests/gradle -pl !integration-tests/maven -pl !integration-tests/kubernetes/quarkus-standard-way"
}
- {
name: Java 11,
java-version: 11,
maven_args: "-pl !integration-tests/gradle"
maven_args: "-pl !integration-tests/gradle -pl !integration-tests/maven"
}
- {
name: Java 14,
java-version: 14,
maven_args: "-pl !integration-tests/gradle -pl !integration-tests/kubernetes/quarkus-standard-way"
maven_args: "-pl !integration-tests/gradle -pl !integration-tests/maven -pl !integration-tests/kubernetes/quarkus-standard-way"
}

steps:
Expand Down Expand Up @@ -239,6 +239,42 @@ jobs:
build-root-directory: integration-tests/gradle
arguments: clean test -i -S --stacktrace --no-daemon

linux-jvm-maven-tests:
name: Maven Tests JDK ${{matrix.java.name}}
runs-on: ubuntu-latest
needs: build-jdk11
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
java:
- {
name: Java 11,
java-version: 11
}
steps:
- uses: actions/checkout@v2
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Run Maven integration tests
run: eval mvn $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/maven'
- name: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-linux-maven-java${{matrix.java.name}}
path: 'test-reports.tgz'

windows-jdk11-jvm-gradle-tests:
name: Gradle Tests JDK 11 Windows
needs: build-jdk11
Expand Down

0 comments on commit de28af8

Please sign in to comment.