Skip to content

Bump gradle/wrapper-validation-action from 2 to 3 #82

Bump gradle/wrapper-validation-action from 2 to 3

Bump gradle/wrapper-validation-action from 2 to 3 #82

Workflow file for this run

# This workflow will check pull request and run tests
name: Pull Request Check
on:
pull_request:
branches:
- master
jobs:
build:
name: πŸ›‚ Pull Request Check
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout repository βš™οΈ
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup Java 17 βš™οΈ
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle dependencies cache βš™οΈ
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Setup Gradle wrapper cache βš™οΈ
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Validate Gradle wrapper πŸ”Ž
uses: gradle/wrapper-validation-action@v3
- name: Build and test πŸ—
run: ./gradlew test jacocoTestReport sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Archive build and test reports πŸ—ƒοΈ
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: ./**/build/test-results/test/*.xml
retention-days: 7