-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.04 KB
/
release-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'release_build'
on:
push:
branches:
- '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 on Release branches
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: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- 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