-
Notifications
You must be signed in to change notification settings - Fork 7
200 lines (200 loc) · 7.26 KB
/
applications.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
name: Applications
on: [push, pull_request]
env:
JHI_RUN_APP: 1
JHI_JDK: 11
JHI_LIB_REPO: https://github.com/jhipster/jhipster.git
JHI_LIB_BRANCH: master
JHI_GEN_REPO: https://github.com/jhipster/generator-jhipster.git
JHI_GEN_BRANCH: master
SPRING_OUTPUT_ANSI_ENABLED: ALWAYS
SPRING_JPA_SHOW_SQL: false
JHI_DISABLE_WEBPACK_LOGS: true
JHI_E2E_HEADLESS: true
JHI_SCRIPTS: ./test-integration/scripts
NG_CLI_ANALYTICS: 'false'
JHI_GITHUB_CI: true
jobs:
applications:
name: ${{ matrix.app-type }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
node_version: [12.13.1]
os: [ubuntu-latest]
app-type:
- ngx-default
- ngx-psql-es-noi18n-mapsid
- ngx-mariadb-oauth2-infinispan
- ngx-mongodb-kafka-cucumber
- ngx-h2mem-ws-nol2
- ngx-gradle-fr
- ngx-gradle-psql-es-noi18n-mapsid
- ngx-gradle-mariadb-oauth2-infinispan
- ngx-gradle-mongodb-kafka-cucumber
- ngx-gradle-yarn-h2disk-ws-nocache
- react-default
- react-maven-psql-es-noi18n-mapsid
- react-maven-h2mem-memcached
- react-maven-cassandra-session-redis
- react-maven-couchbase-caffeine
- react-gradle-psql-es-noi18n-mapsid
- react-gradle-h2mem-memcached
- react-gradle-cassandra-session-redis
- react-gradle-couchbase-caffeine
include:
- app-type: ngx-default
entity: sql
profile: prod
war: 0
protractor: 1
- app-type: ngx-psql-es-noi18n-mapsid
entity: sqlfull
profile: prod
war: 0
protractor: 0
- app-type: ngx-mariadb-oauth2-infinispan
entity: sql
profile: prod
war: 0
protractor: 1
- app-type: ngx-mongodb-kafka-cucumber
entity: mongodb
profile: dev
war: 0
protractor: 1
- app-type: ngx-h2mem-ws-nol2
entity: sql
profile: dev
war: 0 # TODO: need change to 1, when maven+war is fixed
protractor: 1
- app-type: ngx-gradle-fr
entity: sql
profile: prod
war: 0
protractor: 1
- app-type: ngx-gradle-psql-es-noi18n-mapsid
entity: sqlfull
profile: prod
war: 0
protractor: 0
- app-type: ngx-gradle-mariadb-oauth2-infinispan
entity: sql
profile: prod
war: 0
protractor: 1
- app-type: ngx-gradle-mongodb-kafka-cucumber
entity: mongodb
profile: prod
war: 0
protractor: 1
- app-type: ngx-gradle-yarn-h2disk-ws-nocache
entity: sql
profile: dev
war: 1
protractor: 1
- app-type: react-default
entity: sql
profile: prod
war: 0
protractor: 1
- app-type: react-maven-psql-es-noi18n-mapsid
entity: sql # TODO: need change to sqlfull, when react is fixed
profile: prod
war: 0
protractor: 0 # TODO: instead of sql, because of flacky tests
- app-type: react-maven-h2mem-memcached
entity: none # TODO: instead of sql, because of flacky tests
profile: dev
war: 0 # TODO: need change to 1, when maven+war is fixed
protractor: 0 # TODO: instead of sql, because of flacky tests
- app-type: react-maven-cassandra-session-redis
entity: cassandra
profile: prod
war: 0
protractor: 1
- app-type: react-maven-couchbase-caffeine
entity: couchbase
profile: prod
war: 0
protractor: 1
- app-type: react-gradle-psql-es-noi18n-mapsid
entity: sql # TODO: need change to sqlfull, when react is fixed
profile: prod
war: 0
protractor: 0 # TODO: instead of sql, because of flacky tests
- app-type: react-gradle-h2mem-memcached
entity: none # TODO: instead of sql, because of flacky tests
profile: dev
war: 1
protractor: 0 # TODO: instead of sql, because of flacky tests
- app-type: react-gradle-cassandra-session-redis
entity: cassandra
profile: prod
war: 0
protractor: 0 # TODO: instead of sql, because of flacky tests
- app-type: react-gradle-couchbase-caffeine
entity: couchbase
profile: prod
war: 0
protractor: 0 # TODO: instead of sql, because of flacky tests
env:
JHI_ENTITY: ${{ matrix.entity }}
JHI_APP: ${{ matrix.app-type }}
JHI_PROFILE: ${{ matrix.profile }}
JHI_WAR: ${{ matrix.war }}
JHI_PROTRACTOR: ${{ matrix.protractor }}
steps:
#----------------------------------------------------------------------
# Install all tools and check configuration
#----------------------------------------------------------------------
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Download latest chrome binary
run: |
sudo apt update
sudo apt install google-chrome-stable
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- name: 'TOOLS: configure tools installed by the system'
run: $JHI_SCRIPTS/03-system.sh
- name: 'TOOLS: configure git'
run: $JHI_SCRIPTS/04-git-config.sh
- name: 'TOOLS: install tools'
run: npm install -g yo [email protected]
#----------------------------------------------------------------------
# Install JHipster-gRPC and generate project+entities
#----------------------------------------------------------------------
- name: 'GENERATION: install JHipster-gRPC'
run: $JHI_SCRIPTS/10-install-jhipster-grpc.sh
- name: 'GENERATION: entities'
run: $JHI_SCRIPTS/11-generate-entities.sh
- name: 'GENERATION: project'
run: $JHI_SCRIPTS/12-generate-project.sh
#- name: 'GENERATION: replace version in generated project'
# run: $JHI_SCRIPTS/13-replace-version-generated-project.sh
- name: 'GENERATION: jhipster info'
run: $JHI_SCRIPTS/14-jhipster-info.sh
#----------------------------------------------------------------------
# Launch tests
#----------------------------------------------------------------------
- name: 'TESTS: Start docker-compose containers'
run: $JHI_SCRIPTS/20-docker-compose.sh
- name: 'TESTS: backend'
run: $JHI_SCRIPTS/21-tests-backend.sh
- name: 'TESTS: frontend'
run: $JHI_SCRIPTS/22-tests-frontend.sh
- name: 'TESTS: packaging'
run: $JHI_SCRIPTS/23-package.sh
- name: 'TESTS: End-to-End'
run: $JHI_SCRIPTS/24-tests-e2e.sh
- name: 'TESTS: Sonar analysis'
run: $JHI_SCRIPTS/25-sonar-analyze.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}