Skip to content

#7 Happy New Year 2024! #10

#7 Happy New Year 2024!

#7 Happy New Year 2024! #10

Workflow file for this run

name: 'branch_build'
on:
push:
branches-ignore:
- master
- 'release/**'
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build_job:
runs-on: ubuntu-latest
name: Build & Test Microservice
services:
rabbitmq:
image: rabbitmq:3.8
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build
run: >
./mvnw clean verify
-DsurefireArgs=-Dspring.profiles.active=ASYNCHRONOUS,TEST
-Dspring.rabbitmq.host=localhost
-Dci.buildNumber=$GITHUB_RUN_NUMBER
-U -B $MAVEN_OPTS