78 lines (78 loc) · 3.16 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
name: KHipster Generated Applications CI
on: [push, pull_request]
env:
JHI_RUN_APP: 1
JHI_PROTRACTOR: 0
JHI_JDK: 11
JHI_LIB_REPO: https://github.com/jhipster/jhipster.git
JHI_LIB_BRANCH: release
JHI_GEN_REPO: https://github.com/jhipster/generator-jhipster.git
JHI_GEN_BRANCH: v6.4.1
SPRING_OUTPUT_ANSI_ENABLED: ALWAYS
SPRING_JPA_SHOW_SQL: false
JHI_DISABLE_WEBPACK_LOGS: true
JHI_E2E_HEADLESS: true
JHI_SCRIPTS_PATH: generator-jhipster/test-integration/scripts
JHI_SCRIPTS: $HOME/$JHI_SCRIPTS_PATH
KOTLIN_JHI_SCRIPTS: ${{ github.workspace }}/test-integration/scripts
NG_CLI_ANALYTICS: 'false'
JHI_GITHUB_CI: true
jobs:
applications:
name: ${{ matrix.app-type }} application test suite
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
node_version: [12.x]
os: [ubuntu-latest]
app-type: [ngx-session-cassandra-fr, ngx-mongodb-kafka-cucumber, ngx-couchbase]
include:
- app-type: ngx-session-cassandra-fr
entity: cassandra
profile: dev
- app-type: ngx-mongodb-kafka-cucumber
entity: mongodb
profile: dev
- app-type: ngx-couchbase
entity: couchbase
profile: prod
env:
JHI_ENTITY: ${{ matrix.entity }}
JHI_APP: ${{ matrix.app-type }}
JHI_PROFILE: ${{ matrix.profile }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- name: Stop MySQL server
run: sudo /etc/init.d/mysql stop
- name: Config git variables
run: $KOTLIN_JHI_SCRIPTS/04-git-config.sh
- name: Install KHipster
run: $KOTLIN_JHI_SCRIPTS/10-install-jhipster-kotlin.sh
- name: Generate entities
run: $HOME/$JHI_SCRIPTS_PATH/11-generate-entities.sh
- name: Generate project
run: $KOTLIN_JHI_SCRIPTS/12-generate-project-kotlin.sh
- name: Replace version in the generated project
run: $HOME/$JHI_SCRIPTS_PATH/13-replace-version-generated-project.sh
- name: Jhipster Info
run: $HOME/$JHI_SCRIPTS_PATH/14-jhipster-info.sh
- name: Start docker containers
run: $HOME/$JHI_SCRIPTS_PATH/20-docker-compose.sh
- name: Run backend tests
run: $HOME/$JHI_SCRIPTS_PATH/21-tests-backend.sh
- name: Run frontend tests
run: $HOME/$JHI_SCRIPTS_PATH/22-tests-frontend.sh
- name: Package application
run: $HOME/$JHI_SCRIPTS_PATH/23-package.sh
- name: Run e2e tests
run: $HOME/$JHI_SCRIPTS_PATH/24-tests-e2e.sh
- name: Sonar analysis
run: $HOME/$JHI_SCRIPTS_PATH/25-sonar-analyze.sh