-
Notifications
You must be signed in to change notification settings - Fork 41
60 lines (58 loc) · 2.17 KB
/
programming-models.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
49
50
51
52
53
54
55
56
57
58
59
60
name: programming-models
on:
push:
paths:
- "programming-models/**"
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 Postgres(via Docker Compose)
run: |
cd programming-models
docker-compose up -d
sleep 10
docker ps -a
- name: Build with Maven(webmvc)
run: |
mvn -B -q clean package --file programming-models/webmvc/pom.xml
mvn -B -q verify --file programming-models/webmvc/pom.xml -Pit
- name: Build with Maven(webflux)
run: |
mvn -B -q clean package --file programming-models/webflux/pom.xml
mvn -B -q verify --file programming-models/webflux/pom.xml -Pit
- name: Build with Maven(webmvc-fn)
run: |
mvn -B -q clean package --file programming-models/webmvc-fn/pom.xml
mvn -B -q verify --file programming-models/webmvc-fn/pom.xml -Pit
- name: Build with Maven(webflux-fn)
run: |
mvn -B -q clean package --file programming-models/webflux-fn/pom.xml
mvn -B -q verify --file programming-models/webflux-fn/pom.xml -Pit
- name: Build with Maven(webflux-ktco)
run: |
mvn -B -q clean package --file programming-models/webflux-ktco/pom.xml
mvn -B -q verify --file programming-models/webflux-ktco/pom.xml -Pit
- name: Build with Maven(webflux-ktco-fn)
run: |
mvn -B -q clean package --file programming-models/webflux-ktco-fn/pom.xml
mvn -B -q verify --file programming-models/webflux-ktco-fn/pom.xml -Pit