* Fix `pr-build-workflow.yml` removing unused services: now they are pulled by Testcontainers * Use official `rabbitmq:management` image instead of `MQTT`-based. The `MQTT` is now tested with Testcontainers and Mosquitto broker image
45 lines
864 B
YAML
45 lines
864 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: gradle/gradle-build-action@v2
|
|
env:
|
|
SI_FATAL_WHEN_NO_BEANFACTORY: true
|
|
NO_REFERENCE_TASK: true
|
|
with:
|
|
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
|