-
Notifications
You must be signed in to change notification settings - Fork 4
119 lines (113 loc) · 3.71 KB
/
main.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Build
on:
workflow_dispatch:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
backend:
name: Build backend components with gradle
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Grant execute permissions for gradlew
working-directory: ./backend
run: chmod +x gradlew
- name: Build Backend
working-directory: ./backend
run: ./gradlew build
# - name: Build API Common
# working-directory: ./backend
# run: ./gradlew :apis:common:build
# - name: Build API GraphQL
# working-directory: ./backend
# run: ./gradlew :apis:graphql:build
# - name: Build API gRPC
# working-directory: ./backend
# run: ./gradlew :apis:grpc:build
# - name: Build API REST
# working-directory: ./backend
# run: ./gradlew :apis:rest:build
# - name: Build API RSocket
# working-directory: ./backend
# run: ./gradlew :apis:rsocket:build
#
# - name: Build services common api
# working-directory: ./backend
# run: ./gradlew :services:common:api:build
# - name: Build services common application
# working-directory: ./backend
# run: ./gradlew :services:common:application:build
#
# - name: Build services user api
# working-directory: ./backend
# run: ./gradlew :services:user:api:build
# - name: Build services user application
# working-directory: ./backend
# run: ./gradlew :services:user:application:build
#
# - name: Build services company api
# working-directory: ./backend
# run: ./gradlew :services:company:api:build
# - name: Build services company application
# working-directory: ./backend
# run: ./gradlew :services:company:application:build
#
# - name: Build services project api
# working-directory: ./backend
# run: ./gradlew :services:project:api:build
# - name: Build services project application
# working-directory: ./backend
# run: ./gradlew :services:project:application:build
#
# - name: Build demo client for gRPC API
# working-directory: ./backend
# run: ./gradlew :clients:grpc:build
# - name: Build demo client for RSocket API
# working-directory: ./backend
# run: ./gradlew :clients:rsocket:build
frontend:
name: Build frontend with npm
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: npm
cache-dependency-path: ./frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm install
- name: Execute tests
working-directory: ./frontend
run: npm test
- name: Bundle application
working-directory: ./frontend
run: npm build
frontend-v2:
name: Build new frontend (vue) with npm
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: ./frontend-new/package-lock.json
- name: Install dependencies
working-directory: ./frontend-new
run: npm install
- name: Bundle application
working-directory: ./frontend-new
run: npm run build