chore(deps): update gradle/gradle-build-action action from v2
to v3
#318
Workflow file for this run
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: Gradle Build | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
concurrency: | |
group: gradle-build-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
gradle-home-cache-cleanup: true | |
gradle-home-cache-includes: | | |
caches | |
notifications | |
jdks | |
wrapper | |
- name: Build | |
run: ./gradlew build --parallel --build-cache --stacktrace | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: '**/build/test-results/**/*.xml' | |
- name: Publish Test Report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-report | |
path: '**/build/reports/tests/test/*' |