Refresh dependencies to use latest conventions plugin snapshot #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build: | |
name: '${{ matrix.os.name}} | Java ${{ matrix.java.version}}' | |
runs-on: ${{ matrix.os.id }} | |
if: ${{ github.repository == 'spring-projects/spring-restdocs' }} | |
strategy: | |
matrix: | |
os: | |
- id: ubuntu-latest | |
name: Linux | |
- id: windows-latest | |
name: Windows | |
java: | |
- version: 17 | |
- version: 21 | |
exclude: | |
- os: | |
name: Linux | |
java: | |
version: 17 | |
steps: | |
- name: Set Up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'liberica' | |
java-version: ${{ matrix.java.version }} | |
- name: Check Out Code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set Up Gradle | |
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 | |
- name: Configure Gradle Properties | |
shell: bash | |
run: | | |
mkdir -p $HOME/.gradle | |
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties | |
echo 'systemProp.org.gradle.internal.launcher.welcomeMessageEnabled=false' >> $HOME/.gradle/gradle.properties | |
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties | |
- name: Build | |
env: | |
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io' | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} | |
run: ./gradlew --refresh-dependencies build |