Publish snapshot on every merge to main (#3097)
This commit is contained in:
parent
c49a0bb114
commit
ceb0ce9b35
|
@ -119,3 +119,55 @@ jobs:
|
||||||
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
|
||||||
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
|
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 -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
|
||||||
|
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
|
||||||
|
|
||||||
|
snapshot:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [ build, example-distro, smoke-test, test, testLatestDep ]
|
||||||
|
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: Publish snapshot
|
||||||
|
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 }}
|
||||||
|
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
|
||||||
|
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
|
||||||
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
||||||
|
run: ./gradlew snapshot --stacktrace
|
||||||
|
|
|
@ -121,35 +121,6 @@ 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 test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
|
run: ./gradlew test -x :smoke-tests:test -PtestLatestDeps=true --stacktrace
|
||||||
|
|
||||||
snapshot:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [ build, test, testLatestDep ]
|
|
||||||
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: Publish snapshot
|
|
||||||
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 }}
|
|
||||||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
|
|
||||||
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
|
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
||||||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
|
|
||||||
run: ./gradlew snapshot --stacktrace
|
|
||||||
|
|
||||||
issue:
|
issue:
|
||||||
name: Open issue on failure
|
name: Open issue on failure
|
||||||
needs: [ build, test, testLatestDep, snapshot ]
|
needs: [ build, test, testLatestDep, snapshot ]
|
||||||
|
|
Loading…
Reference in New Issue