-
Notifications
You must be signed in to change notification settings - Fork 40
48 lines (45 loc) · 1.4 KB
/
amqp.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
39
40
41
42
43
44
45
46
47
48
name: amqp
on:
push:
paths:
- "amqp/**"
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: "17"
distribution: "zulu"
- name: Cache Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up RabbitMQ(via Docker Compose)
run: |
cd amqp
docker-compose up -d
sleep 10
docker ps -a
- name: Build with Maven(hello-amqp)
run: |
mvn -B -q clean package --file amqp/hello-amqp/pom.xml
mvn -B -q verify --file amqp/hello-amqp/pom.xml -Pit
- name: Build with Maven(spring-messaging-amqp)
run: |
mvn -B -q clean package --file amqp/spring-messaging-amqp/pom.xml
mvn -B -q verify --file amqp/spring-messaging-amqp/pom.xml -Pit
- name: Build with Maven(cafe-integration-dsl-amqp)
run: |
mvn -B -q clean package --file amqp/cafe-integration-dsl-amqp/pom.xml