Skip to content

Update gradle/actions action to v4.2.2 {patch} #1038

Update gradle/actions action to v4.2.2 {patch}

Update gradle/actions action to v4.2.2 {patch} #1038

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
module: [ java, docker, spring ]
include:
- module: java
name: Jar process
profile: process
jdk: 17
folder: java-sdk
- module: docker
name: Docker container
profile: docker
jdk: 11
folder: java-sdk
- module: spring
name: Spring Boot Azure Starter
profile: default
jdk: 17
folder: spring-cloud-azure-starter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
- name: Build with Gradle using ${{ matrix.name }}
working-directory: ${{ matrix.folder }}
run: ./gradlew test -P${{ matrix.profile }}