mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-02-08 22:44:35 +00:00
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
name: PR Build
|
|
|
|
on: pull_request
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'spring-projects/spring-security' }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Set up gradle
|
|
uses: spring-io/spring-gradle-build-action@efc55f07f4dfa22f2afd97f9ea1be4212eeed737 # v2.0.5
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
- name: Build with Gradle
|
|
run: ./gradlew clean build -PskipCheckExpectedBranchVersion --continue --scan
|
|
generate-docs:
|
|
name: Generate Docs
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'spring-projects/spring-security' }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Set up gradle
|
|
uses: spring-io/spring-gradle-build-action@efc55f07f4dfa22f2afd97f9ea1be4212eeed737 # v2.0.5
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
- name: Run Antora
|
|
run: ./gradlew -PbuildSrc.skipTests=true :spring-security-docs:antora
|
|
- name: Upload Docs
|
|
id: upload
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: docs
|
|
path: docs/build/site
|
|
overwrite: true
|
|
send-notification:
|
|
name: Send Notification
|
|
needs: [ build, generate-docs ]
|
|
if: ${{ failure() && github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Send Notification
|
|
uses: spring-io/spring-security-release-tools/.github/actions/send-notification@7d42d82298553f123a9dad622e0eac725aaf52ef # v1.0.13
|
|
with:
|
|
webhook-url: ${{ secrets.SPRING_SECURITY_CI_GCHAT_WEBHOOK_URL }}
|