-
Notifications
You must be signed in to change notification settings - Fork 40
43 lines (40 loc) · 1.12 KB
/
multi-tenancy-r2dbc.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
name: multi-tenancy-r2dbc
on:
push:
paths:
- "multi-tenancy-r2dbc/**"
branches: [master]
pull_request:
paths:
- "multi-tenancy-r2dbc/**"
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 Postgres(via Docker Compose)
run: |
cd multi-tenancy-r2dbc
docker-compose up -d
sleep 10
docker ps -a
- name: Build with Maven
run: |
mvn -B -q clean package --file multi-tenancy-r2dbc/pom.xml
mvn -B -q verify --file multi-tenancy-r2dbc/pom.xml -Pit