Re-enable smoke tests in release build
@@ -8,7 +8,67 @@ on:
required: true
jobs:
- build:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 8, 11, 15 ]
+ steps:
+ - uses: actions/checkout@v2.3.4
+ with:
+ fetch-depth: 0
+ - id: setup-test-java
+ name: Set up JDK ${{ matrix.java }} for running tests
+ uses: actions/setup-java@v2
+ with:
+ distribution: adopt
+ java-version: ${{ matrix.java }}
+
+ - name: Set up JDK 11 for running Gradle
+ uses: actions/setup-java@v2
+ with:
+ distribution: adopt
+ java-version: 11
+
+ - name: Restore cache
+ uses: burrunan/gradle-cache-action@v1.10
+ with:
+ job-id: jdk${{ matrix.java }}
+
+ - name: Test
+ run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -x :smoke-tests:test -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
+
+ smoke-test:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ windows-latest, ubuntu-latest ]
+ suite: [ "glassfish", "jetty", "liberty", "tomcat", "tomee", "wildfly", "other" ]
+ steps:
+ - name: Support longpaths
+ run: git config --system core.longpaths true
+ if: matrix.os == 'windows-latest'
+
+ - uses: actions/checkout@v2.3.4
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 11 for running Gradle
+ uses: actions/setup-java@v2
+ with:
+ distribution: adopt
+ java-version: 11
+
+ - name: Restore cache
+ uses: burrunan/gradle-cache-action@v1.10
+ with:
+ job-id: smokeTests
+
+ - name: Test
+ run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
+
+ release:
+ needs: [ test, smoke-test ]
name: Build and release
runs-on: ubuntu-latest
steps:
@@ -22,7 +82,7 @@ jobs:
with:
job-id: jdk11
remote-build-cache-proxy-enabled: false
- arguments: build final closeAndReleaseSonatypeStagingRepository --stacktrace -x :smoke-tests:test -Prelease.version=${{ github.event.inputs.version }}
+ arguments: assemble final closeAndReleaseSonatypeStagingRepository --stacktrace -Prelease.version=${{ github.event.inputs.version }}
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
