parent
6ad567f0fa
commit
6c29007fac
|
@ -19,14 +19,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup Gradle
|
distribution: 'adopt'
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Generate antora.yml
|
- name: Generate antora.yml
|
||||||
run: ./gradlew :spring-security-docs:generateAntora
|
run: ./gradlew :spring-security-docs:generateAntora
|
||||||
- name: Extract Branch Name
|
- name: Extract Branch Name
|
||||||
|
|
|
@ -36,6 +36,7 @@ jobs:
|
||||||
name: Determine if should continue
|
name: Determine if should continue
|
||||||
if: env.RUN_JOBS == 'true'
|
if: env.RUN_JOBS == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
# Run jobs if in upstream repository
|
||||||
echo "::set-output name=runjobs::true"
|
echo "::set-output name=runjobs::true"
|
||||||
# Extract version from gradle.properties
|
# Extract version from gradle.properties
|
||||||
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
||||||
|
@ -50,18 +51,11 @@ jobs:
|
||||||
if: needs.prerequisites.outputs.runjobs
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
|
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
|
||||||
|
@ -75,18 +69,11 @@ jobs:
|
||||||
if: needs.prerequisites.outputs.runjobs
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Snapshot Tests
|
- name: Snapshot Tests
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
|
@ -100,18 +87,11 @@ jobs:
|
||||||
if: needs.prerequisites.outputs.runjobs
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Check samples project
|
- name: Check samples project
|
||||||
env:
|
env:
|
||||||
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
|
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
|
||||||
|
@ -129,18 +109,11 @@ jobs:
|
||||||
if: needs.prerequisites.outputs.runjobs
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Check for package tangles
|
- name: Check for package tangles
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
|
@ -153,18 +126,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Deploy artifacts
|
- name: Deploy artifacts
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
|
@ -184,18 +150,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Deploy Docs
|
- name: Deploy Docs
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
|
@ -212,18 +171,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Deploy Schema
|
- name: Deploy Schema
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
|
@ -251,18 +203,11 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v1
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Wait for Artifactory Artifacts
|
- name: Wait for Artifactory Artifacts
|
||||||
if: ${{ contains(needs.prerequisites.outputs.project_version, '-RC') || contains(needs.prerequisites.outputs.project_version, '-M') }}
|
if: ${{ contains(needs.prerequisites.outputs.project_version, '-RC') || contains(needs.prerequisites.outputs.project_version, '-M') }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -338,7 +283,8 @@ jobs:
|
||||||
VERSION: ${{ needs.prerequisites.outputs.project_version }}
|
VERSION: ${{ needs.prerequisites.outputs.project_version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: spring-io/spring-gradle-build-action@v1
|
- name: Set up gradle
|
||||||
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
|
@ -346,7 +292,7 @@ jobs:
|
||||||
run: ./gradlew scheduleNextRelease -PnextVersion=$VERSION -PgitHubAccessToken=$TOKEN
|
run: ./gradlew scheduleNextRelease -PnextVersion=$VERSION -PgitHubAccessToken=$TOKEN
|
||||||
notify_result:
|
notify_result:
|
||||||
name: Check for failures
|
name: Check for failures
|
||||||
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, perform_release, perform_post_release]
|
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, perform_release, perform_post_release]
|
||||||
if: failure()
|
if: failure()
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
@ -16,23 +16,17 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up gradle
|
||||||
uses: actions/setup-java@v2
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: Validate Gradle wrapper
|
- name: Cleanup Gradle Cache
|
||||||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
||||||
- name: Setup Gradle
|
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
|
||||||
uses: gradle/gradle-build-action@v2
|
run: |
|
||||||
env:
|
rm -f /home/runner/.gradle/caches/modules-2/modules-2.lock
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
rm -f /home/runner/.gradle/caches/modules-2/gc.properties
|
||||||
with:
|
|
||||||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
|
||||||
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
|
|
||||||
gradle-home-cache-excludes: |
|
|
||||||
caches/modules-2/modules-2.lock
|
|
||||||
caches/modules-2/gc.properties
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew :spring-security-docs:antora --stacktrace
|
run: ./gradlew :spring-security-docs:antora --stacktrace
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|
|
@ -15,18 +15,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- if: env.RUN_JOBS == 'true'
|
- if: env.RUN_JOBS == 'true'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up gradle
|
||||||
if: env.RUN_JOBS == 'true'
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup Gradle
|
distribution: 'adopt'
|
||||||
if: env.RUN_JOBS == 'true'
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
with:
|
|
||||||
cache-read-only: true
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
if: env.RUN_JOBS == 'true'
|
if: env.RUN_JOBS == 'true'
|
||||||
run: ./gradlew clean build --continue --scan
|
run: ./gradlew clean build --continue --scan
|
||||||
|
|
|
@ -26,19 +26,11 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||||
- id: setup-jdk
|
- name: Set up gradle
|
||||||
name: Set up JDK 11
|
uses: spring-io/spring-gradle-build-action@v1
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Setup gradle user name
|
distribution: 'adopt'
|
||||||
run: |
|
|
||||||
mkdir -p ~/.gradle
|
|
||||||
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2
|
|
||||||
env:
|
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
|
||||||
- id: check-release-due
|
- id: check-release-due
|
||||||
name: Check Release Due
|
name: Check Release Due
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue