Browse Source

Harmonize CI configuration

This commit is a continuation of eacfd77d but for workflows specific
to the main branch.
pull/33152/head
Stéphane Nicoll 2 years ago
parent
commit
fd3bf5b352
  1. 2
      .github/actions/print-jvm-thread-dumps/action.yml
  2. 22
      .github/workflows/build-pull-request.yml

2
.github/actions/print-jvm-thread-dumps/action.yml

@ -7,7 +7,7 @@ runs:
shell: bash shell: bash
run: | run: |
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
jcmd $java_pid Thread.print jcmd $jvm_pid Thread.print
done done
- if: ${{ runner.os == 'Windows' }} - if: ${{ runner.os == 'Windows' }}
shell: powershell shell: powershell

22
.github/workflows/build-pull-request.yml

@ -6,7 +6,7 @@ permissions:
jobs: jobs:
build: build:
name: Build pull request name: Build Pull Request
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-framework' }} if: ${{ github.repository == 'spring-projects/spring-framework' }}
steps: steps:
@ -15,27 +15,21 @@ jobs:
with: with:
java-version: '17' java-version: '17'
distribution: 'liberica' distribution: 'liberica'
- name: Check Out
- name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Validate Gradle Wrapper
- name: Validate Gradle wrapper uses: gradle/actions/wrapper-validation@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 - name: Set Up Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
- name: Set up Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
- name: Build - name: Build
env: env:
CI: 'true' CI: 'true'
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io' GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
- name: Print JVM Thread Dumps When Cancelled
- name: Print JVM thread dumps when cancelled
uses: ./.github/actions/print-jvm-thread-dumps uses: ./.github/actions/print-jvm-thread-dumps
if: cancelled() if: cancelled()
- name: Upload Build Reports
- name: Upload build reports
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:

Loading…
Cancel
Save