Split out smoke tests in nightly too
MODIFY
.github/workflows/ci.yaml
.github/workflows/ci.yaml
name: CI build
on:
- workflow_dispatch:
push:
branches:
- main
+ workflow_dispatch:
jobs:
build:

MODIFY
.github/workflows/nightly.yaml
.github/workflows/nightly.yaml
@@ -28,7 +28,60 @@ jobs:
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
+ run: ./gradlew build --stacktrace -x :smoke-tests:test
+
+ example-distro:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 11 for running checks
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: Restore cache
+ uses: burrunan/gradle-cache-action@v1.10
+ with:
+ job-id: jdk11
+
+ - name: Build
run: ./gradlew build --stacktrace
+ working-directory: examples/distro
+
+ smoke-test:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ windows-latest, ubuntu-latest ]
+ suite: [ "glassfish", "jetty", "liberty", "tomcat", "tomee", "wildfly", "other" ]
+ fail-fast: false
+ steps:
+ - name: Support longpaths
+ run: git config --system core.longpaths true
+ if: matrix.os == 'windows-latest'
+
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 11 for running Gradle
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: Restore cache
+ uses: burrunan/gradle-cache-action@v1.10
+ with:
+ job-id: smokeTests
+
+ - name: Test
+ env:
+ S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
+ S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
+ run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
test:
runs-on: ubuntu-latest
@@ -60,7 +113,7 @@ jobs:
env:
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
- run: ./gradlew test -PtestJavaVersion=${{ matrix.java }} --stacktrace -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false
+ 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
testLatestDep:
runs-on: ubuntu-latest

Split out smoke tests in nightly too (#2711)