Sync yaml files (#3145)
This commit is contained in:
parent
5e8568807b
commit
4ce2cac645
|
@ -13,6 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -5,7 +5,7 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- 'smoke-tests/fake-backend/**'
|
- 'smoke-tests/fake-backend/**'
|
||||||
- '.github/workflows/build-smoke-dist-fakebackend.yaml'
|
- '.github/workflows/build-smoke-dist-fakebackend.yaml'
|
||||||
branches: ['main']
|
branches: [ 'main' ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -13,6 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
@ -48,6 +51,8 @@ jobs:
|
||||||
run: git config --system core.longpaths true
|
run: git config --system core.longpaths true
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -5,7 +5,7 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- 'smoke-tests/matrix/**'
|
- 'smoke-tests/matrix/**'
|
||||||
- '.github/workflows/build-test-matrix.yaml'
|
- '.github/workflows/build-test-matrix.yaml'
|
||||||
branches: ['main']
|
branches: [ 'main' ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -13,6 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
@ -48,6 +51,8 @@ jobs:
|
||||||
run: git config --system core.longpaths true
|
run: git config --system core.longpaths true
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
|
|
@ -41,6 +41,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: setup-test-java
|
- id: setup-test-java
|
||||||
name: Set up JDK ${{ matrix.java }} for running tests
|
name: Set up JDK ${{ matrix.java }} for running tests
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
@ -71,6 +72,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
@ -145,7 +147,7 @@ jobs:
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build, example-distro, smoke-test, test, testLatestDep ]
|
needs: [ build, test, testLatestDep, smoke-test, example-distro ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -12,6 +12,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
|
|
|
@ -13,4 +13,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: gradle/wrapper-validation-action@v1.0.4
|
- uses: gradle/wrapper-validation-action@v1.0.4
|
||||||
|
|
|
@ -20,7 +20,6 @@ jobs:
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew build --stacktrace -x :smoke-tests:test --no-build-cache
|
run: ./gradlew build --stacktrace -x :smoke-tests:test --no-build-cache
|
||||||
|
|
||||||
|
@ -34,6 +33,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: setup-test-java
|
- id: setup-test-java
|
||||||
name: Set up JDK ${{ matrix.java }} for running tests
|
name: Set up JDK ${{ matrix.java }} for running tests
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
@ -50,6 +50,22 @@ jobs:
|
||||||
- name: Test
|
- 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
|
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
|
||||||
|
|
||||||
|
testLatestDep:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: adopt
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace --no-build-cache
|
||||||
|
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -94,14 +110,18 @@ jobs:
|
||||||
|
|
||||||
issue:
|
issue:
|
||||||
name: Open issue on failure
|
name: Open issue on failure
|
||||||
needs: [ build, test, example-distro, smoke-test ]
|
needs: [ build, test, testLatestDep, smoke-test, example-distro ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
# run this action to get workflow conclusion
|
# run this action to get workflow conclusion
|
||||||
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
||||||
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: JasonEtco/create-an-issue@v2.5.0
|
- uses: JasonEtco/create-an-issue@v2.5.0
|
||||||
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -41,6 +41,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: setup-test-java
|
- id: setup-test-java
|
||||||
name: Set up JDK ${{ matrix.java }} for running tests
|
name: Set up JDK ${{ matrix.java }} for running tests
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
@ -71,6 +72,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
@ -121,16 +123,42 @@ jobs:
|
||||||
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
|
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
|
||||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
issue:
|
issue:
|
||||||
name: Open issue on failure
|
name: Open issue on failure
|
||||||
needs: [ build, smoke-test, test, testLatestDep ]
|
needs: [ build, test, testLatestDep, smoke-test, example-distro ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
# run this action to get workflow conclusion
|
# run this action to get workflow conclusion
|
||||||
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
||||||
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
||||||
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: JasonEtco/create-an-issue@v2.5.0
|
- uses: JasonEtco/create-an-issue@v2.5.0
|
||||||
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -23,39 +23,159 @@ jobs:
|
||||||
echo "::set-output name=release-branch-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.x/')"
|
echo "::set-output name=release-branch-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.x/')"
|
||||||
# Sets the release-tag-name output to the version number with the last non-period element replace with a '0' and prepended with v
|
# Sets the release-tag-name output to the version number with the last non-period element replace with a '0' and prepended with v
|
||||||
echo "::set-output name=release-tag-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.0/')"
|
echo "::set-output name=release-tag-name::$(echo '${{ github.event.inputs.version }}' | sed -E 's/([^.]+)\.([^.]+)\.([^.]+)/v\1.\2.0/')"
|
||||||
|
|
||||||
- id: checkout-release-branch
|
- id: checkout-release-branch
|
||||||
name: Check out release branch
|
name: Check out release branch
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
ref: ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: checkout-release-tag
|
- id: checkout-release-tag
|
||||||
name: Check out release tag
|
name: Check out release tag
|
||||||
if: ${{ steps.checkout-release-branch.outcome == 'failure' }}
|
if: ${{ steps.checkout-release-branch.outcome == 'failure' }}
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.parse-release-branch.outputs.release-tag-name }}
|
ref: ${{ steps.parse-release-branch.outputs.release-tag-name }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Create release branch
|
- name: Create release branch
|
||||||
if: ${{ steps.checkout-release-tag.outcome == 'success' }}
|
if: ${{ steps.checkout-release-tag.outcome == 'success' }}
|
||||||
run: |
|
run: |
|
||||||
git checkout -b ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
git checkout -b ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
||||||
git push --set-upstream origin ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
git push --set-upstream origin ${{ steps.parse-release-branch.outputs.release-branch-name }}
|
||||||
build:
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-release-branch
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [ 8, 11, 15 ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
||||||
|
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
|
||||||
|
|
||||||
|
testLatestDep:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: prepare-release-branch
|
needs: prepare-release-branch
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout release branch
|
- uses: actions/checkout@v2.3.4
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: adopt
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
|
- name: Restore cache
|
||||||
|
uses: burrunan/gradle-cache-action@v1.10
|
||||||
|
with:
|
||||||
|
job-id: latestDepTest
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
|
||||||
|
|
||||||
|
smoke-test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
needs: prepare-release-branch
|
||||||
|
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:
|
||||||
|
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
||||||
|
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 }}
|
||||||
|
|
||||||
|
example-distro:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-release-branch
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
||||||
|
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
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: prepare-release-branch
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Setup git name
|
- name: Setup git name
|
||||||
run: |
|
run: |
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
|
|
||||||
- name: Cherrypicks
|
- name: Cherrypicks
|
||||||
if: ${{ github.event.inputs.commits != '' }}
|
if: ${{ github.event.inputs.commits != '' }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -64,6 +184,7 @@ jobs:
|
||||||
# Trim whitespaces and cherrypick
|
# Trim whitespaces and cherrypick
|
||||||
echo $word | sed 's/ *$//g' | sed 's/^ *//g' | git cherry-pick --stdin
|
echo $word | sed 's/ *$//g' | sed 's/^ *//g' | git cherry-pick --stdin
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Build and publish artifacts
|
- name: Build and publish artifacts
|
||||||
uses: burrunan/gradle-cache-action@v1.10
|
uses: burrunan/gradle-cache-action@v1.10
|
||||||
with:
|
with:
|
||||||
|
@ -77,6 +198,7 @@ jobs:
|
||||||
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
|
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1.1.4
|
uses: actions/create-release@v1.1.4
|
||||||
|
@ -87,6 +209,7 @@ jobs:
|
||||||
release_name: Release v${{ github.event.inputs.version }}
|
release_name: Release v${{ github.event.inputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
|
|
|
@ -45,6 +45,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: setup-test-java
|
- id: setup-test-java
|
||||||
name: Set up JDK ${{ matrix.java }} for running tests
|
name: Set up JDK ${{ matrix.java }} for running tests
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
@ -77,6 +78,13 @@ jobs:
|
||||||
path: /tmp/deadlock-detector-*
|
path: /tmp/deadlock-detector-*
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
# testLatestDep is intentionally not included in the PR workflow
|
||||||
|
# because any time a new library version is released to maven central
|
||||||
|
# it can fail due to test code incompatibility with the new release,
|
||||||
|
# or due to slight changes in emitted telemetry, which can be confusing for contributors
|
||||||
|
# (muzzle can also fail when a new library version is released to maven central
|
||||||
|
# but that happens much less often)
|
||||||
|
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -116,11 +124,13 @@ jobs:
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- id: set-matrix
|
- id: set-matrix
|
||||||
run: echo "::set-output name=matrix::{\"module\":[\"$(./gradlew -q instrumentation:listInstrumentations | xargs echo | sed 's/ /","/g')\"]}"
|
run: echo "::set-output name=matrix::{\"module\":[\"$(./gradlew -q instrumentation:listInstrumentations | xargs echo | sed 's/ /","/g')\"]}"
|
||||||
|
|
||||||
|
@ -133,11 +143,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 11 for running Gradle
|
- name: Set up JDK 11 for running Gradle
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Run muzzle
|
- name: Run muzzle
|
||||||
# using retry because of sporadic gradle download failures
|
# using retry because of sporadic gradle download failures
|
||||||
uses: nick-invision/retry@v2.4.0
|
uses: nick-invision/retry@v2.4.0
|
||||||
|
@ -177,6 +191,7 @@ jobs:
|
||||||
# run this action to get workflow conclusion
|
# run this action to get workflow conclusion
|
||||||
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
# You can get conclusion by env (env.WORKFLOW_CONCLUSION)
|
||||||
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
- uses: technote-space/workflow-conclusion-action@v2.1.6
|
||||||
|
|
||||||
- name: Fail build
|
- name: Fail build
|
||||||
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
|
||||||
run: exit 1
|
run: exit 1
|
|
@ -17,6 +17,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- id: setup-test-java
|
- id: setup-test-java
|
||||||
name: Set up JDK ${{ matrix.java }} for running tests
|
name: Set up JDK ${{ matrix.java }} for running tests
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
@ -38,6 +39,27 @@ jobs:
|
||||||
- name: Test
|
- 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
|
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
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: adopt
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
|
- name: Restore cache
|
||||||
|
uses: burrunan/gradle-cache-action@v1.10
|
||||||
|
with:
|
||||||
|
job-id: latestDepTest
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
|
||||||
|
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -67,16 +89,42 @@ jobs:
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=${{ matrix.suite }}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [ test, smoke-test ]
|
needs: [ test, testLatestDeps, smoke-test, example-distro ]
|
||||||
name: Build and release
|
name: Build and release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: adopt
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Build and publish artifacts
|
- name: Build and publish artifacts
|
||||||
uses: burrunan/gradle-cache-action@v1.10
|
uses: burrunan/gradle-cache-action@v1.10
|
||||||
with:
|
with:
|
||||||
|
@ -90,6 +138,7 @@ jobs:
|
||||||
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
|
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1.1.4
|
uses: actions/create-release@v1.1.4
|
||||||
|
@ -100,6 +149,7 @@ jobs:
|
||||||
release_name: Release v${{ github.event.inputs.version }}
|
release_name: Release v${{ github.event.inputs.version }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
|
|
Loading…
Reference in New Issue