Add option to run testLatestDeps on PRs (#5270)
This commit is contained in:
parent
8b767ac435
commit
e2b7354290
|
@ -114,12 +114,29 @@ jobs:
|
||||||
path: "**/javacore.*.txt"
|
path: "**/javacore.*.txt"
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|
||||||
# testLatestDeps is intentionally not included in the PR workflow
|
testLatestDeps:
|
||||||
# because any time a new library version is released to maven central
|
runs-on: ubuntu-latest
|
||||||
# it can fail due to test code incompatibility with the new library version,
|
# testLatestDeps is not included in the PR workflow by default
|
||||||
# or due to slight changes in emitted telemetry, which can be confusing for contributors
|
# because any time a new library version is released to maven central
|
||||||
# (muzzle can also fail when a new library version is released to maven central
|
# it can fail due to test code incompatibility with the new library version,
|
||||||
# but that happens much less often)
|
# 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)
|
||||||
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'test latest deps') }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
|
- name: Set up JDK 11 for running Gradle
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: adopt
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
arguments: test -PtestLatestDeps=true
|
||||||
|
cache-read-only: true
|
||||||
|
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
Loading…
Reference in New Issue