-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (64 loc) · 2.16 KB
/
build-and-test.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build and Test
on:
push:
workflow_dispatch:
# list of OSes and what they contain https://github.com/actions/virtual-environments
jobs:
# This steps uses the maven cache better
Prepare-Maven:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: "-Xmx6144m"
steps:
- name: ↙️ Check out repository code from git
uses: actions/checkout@v3
with:
repository: Calpano/graphinout
path: graphinout
- name: ☕ Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: "🐹 Download all dependencies and 'go offline'"
working-directory: graphinout
run: mvn --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.2.0:go-offline
Build-and-Test:
needs: Prepare-Maven
runs-on: ubuntu-latest
env:
MAVEN_OPTS: "-Xmx6144m"
steps:
- name: ↙️ Check out repository code from git
uses: actions/checkout@v3
with:
repository: Calpano/graphinout
path: graphinout
- name: ☕ Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: ⬇️ Install root project
working-directory: graphinout
run: mvn clean -N install
- name: 🔨️ Build & ⬇ install base
working-directory: graphinout/base
run: mvn clean install
- name: 🔨️ Build & ⬇ install readers
working-directory: graphinout
run: mvn clean -pl !base,!engine,!app-cmdline,!app-rest-service install
- name: 🔨️ Build & ⬇ install engine
working-directory: graphinout
run: mvn clean -pl engine install
- name: 🔨️ Build & ⬇ install app-cmdline
working-directory: graphinout
run: mvn clean -pl app-cmdline install
- name: 🔨️ Build & ⬇ install app-rest-service
working-directory: graphinout
run: mvn clean -pl app-rest-service install
- name: ↗️ Deploy
working-directory: graphinout
run: mvn deploy