Files
spring-integration/.github/workflows/pr-build-workflow.yml
Artem Bilan 49096b3937 * Use burrunan/gradle-cache-action got GH actions
According to the `gradle/gradle-build-action` docs it caches only a `main` branch.
This is not appropriate for us since we really never build `main` on GH actions.

With this change we will experiment if `burrunan/gradle-cache-action` does what we would like to get from the Gradle cache feature

* Some config adjustments for `gradle-cache-action`
2023-04-26 12:48:35 -04:00

48 lines
958 B
YAML

name: Pull Request build
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:management
ports:
- 5672:5672
- 15672:15672
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Run Gradle
uses: burrunan/gradle-cache-action@v1
env:
SI_FATAL_WHEN_NO_BEANFACTORY: true
NO_REFERENCE_TASK: true
with:
debug: false
concurrent: true
gradle-build-scan-report: false
arguments: checkAsciidocLinks check
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '*/build/reports/tests/**/*.*'
retention-days: 3