name: Validate Gradle Wrapper
on:
  push:
    branches:
      - develop
    paths:
      - ".github/workflows/validate_gradle_wrapper.yml"
      - "gradle/**"
      - "gradlew"
      - "gradlew.bat"
  pull_request:
    paths:
      - ".github/workflows/validate_gradle_wrapper.yml"
      - "gradle/**"
      - "gradlew"
      - "gradlew.bat"

jobs:
  validation:
    name: Wrapper validation
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

      - name: Validate Gradle Wrapper
        uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0
