Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Integrate github CI and move few build pipelines from Travis (#205
- Loading branch information
1 parent
72eccb4
commit 7643290
Showing
5 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: KHipster Generator 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: $HOME/generator-jhipster/test-integration/scripts | ||
KOTLIN_JHI_SCRIPTS: ${{ github.workspace }}/test-integration/scripts | ||
JHI_GITHUB_CI: true | ||
JHI_APP: '' | ||
jobs: | ||
kotlin-hipster: | ||
name: KHipster generator unit test suite | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [10.x, 12.x] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Config git variables | ||
run: $KOTLIN_JHI_SCRIPTS/04-git-config.sh | ||
- name: Install and execute unit tests | ||
run: $KOTLIN_JHI_SCRIPTS/10-install-jhipster-kotlin.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters