Consistent job ordering within yaml files
MODIFY
.github/workflows/ci.yaml
.github/workflows/ci.yaml
@@ -31,14 +31,24 @@ jobs:
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
run: ./gradlew build --stacktrace -x :smoke-tests:test
- example-distro:
+ test:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 8, 15 ]
+ fail-fast: false
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 checks
+ - name: Set up JDK 11 for running Gradle
uses: actions/setup-java@v2
with:
distribution: adopt
@@ -47,29 +57,21 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: jdk11
+ job-id: jdk${{ matrix.java }}
- - name: Build
- run: ./gradlew build --stacktrace
- working-directory: examples/distro
+ - 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 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" ]
- fail-fast: false
+ testLatestDep:
+ runs-on: ubuntu-latest
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
+ - name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: adopt
@@ -78,30 +80,29 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: smokeTests
+ job-id: latestDepTest
- 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 }}
+ run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
- test:
- runs-on: ubuntu-latest
+ smoke-test:
+ runs-on: ${{ matrix.os }}
strategy:
matrix:
- java: [ 8, 15 ]
+ 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.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
@@ -112,21 +113,22 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: jdk${{ matrix.java }}
+ 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 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
+ run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
- testLatestDep:
+ example-distro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- - name: Set up JDK 11
+
+ - name: Set up JDK 11 for running checks
uses: actions/setup-java@v2
with:
distribution: adopt
@@ -135,13 +137,11 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: latestDepTest
+ job-id: jdk11
- - 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 test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
+ - name: Build
+ run: ./gradlew build --stacktrace
+ working-directory: examples/distro
snapshot:
runs-on: ubuntu-latest

MODIFY
.github/workflows/nightly-no-cache.yaml
.github/workflows/nightly-no-cache.yaml
@@ -24,22 +24,31 @@ jobs:
- name: Build
run: ./gradlew build --stacktrace -x :smoke-tests:test --no-build-cache
- example-distro:
+ test:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 8, 15 ]
+ fail-fast: false
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 checks
+ - name: Set up JDK 11 for running Gradle
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- - name: Build
- run: ./gradlew build --stacktrace --no-build-cache
- working-directory: examples/distro
+ - 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 --no-build-cache
smoke-test:
runs-on: ${{ matrix.os }}
@@ -66,31 +75,22 @@ jobs:
- name: Test
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }} --no-build-cache
- test:
+ example-distro:
runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ 8, 15 ]
- fail-fast: false
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
+ - name: Set up JDK 11 for running checks
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- - 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 --no-build-cache
+ - name: Build
+ run: ./gradlew build --stacktrace --no-build-cache
+ working-directory: examples/distro
issue:
name: Open issue on failure

MODIFY
.github/workflows/nightly.yaml
.github/workflows/nightly.yaml
@@ -31,21 +31,22 @@ jobs:
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
run: ./gradlew build --stacktrace -x :smoke-tests:test
- smoke-test:
- runs-on: ${{ matrix.os }}
+ test:
+ runs-on: ubuntu-latest
strategy:
matrix:
- os: [ windows-latest, ubuntu-latest ]
- suite: [ "glassfish", "jetty", "liberty", "tomcat", "tomee", "wildfly", "other" ]
+ java: [ 8, 15 ]
fail-fast: false
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
+ - 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
@@ -56,32 +57,21 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: smokeTests
+ job-id: jdk${{ matrix.java }}
- 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 }}
+ 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
- test:
+ testLatestDep:
runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ 8, 15 ]
- fail-fast: false
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
+ - name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: adopt
@@ -90,21 +80,31 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: jdk${{ matrix.java }}
+ job-id: latestDepTest
- 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 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
+ run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
- testLatestDep:
- runs-on: ubuntu-latest
+ 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.3.4
with:
fetch-depth: 0
- - name: Set up JDK 11
+
+ - name: Set up JDK 11 for running Gradle
uses: actions/setup-java@v2
with:
distribution: adopt
@@ -113,13 +113,13 @@ jobs:
- name: Restore cache
uses: burrunan/gradle-cache-action@v1.10
with:
- job-id: latestDepTest
+ 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 test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
+ run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
issue:
name: Open issue on failure

MODIFY
.github/workflows/pr.yaml
.github/workflows/pr.yaml
@@ -35,28 +35,6 @@ jobs:
path: /tmp/deadlock-detector-*
if-no-files-found: ignore
- example-distro:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2.3.4
- with:
- fetch-depth: 0
-
- - name: Set up JDK 11 for running checks
- uses: actions/setup-java@v2
- with:
- distribution: adopt
- 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
-
test:
runs-on: ubuntu-latest
strategy:
@@ -169,6 +147,28 @@ jobs:
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
+ example-distro:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2.3.4
+ with:
+ fetch-depth: 0
+
+ - name: Set up JDK 11 for running checks
+ uses: actions/setup-java@v2
+ with:
+ distribution: adopt
+ 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
+
accept-pr:
needs: [ build, test, smoke-test, muzzle ]
runs-on: ubuntu-latest

Consistent job ordering within yaml files (#3143)