Bump generator-jhipster from 861a4eb
to cfc3ca6
#3202
Workflow file for this run
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
name: Test Integration Microservice | |
concurrency: | |
# Group PRs by head_ref, push to main branch by commit id, and others branch by ref. | |
group: ${{ github.workflow }}-${{ github.head_ref || (github.ref == 'refs/heads/main' && github.sha) || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
applications: | |
name: ${{ matrix.app-type }} | |
runs-on: ${{ matrix.os }} | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
timeout-minutes: 40 | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/app | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: [20] | |
os: [ubuntu-22.04] | |
app-type: | |
- microservice-app | |
- gateway-app | |
include: | |
- app-type: microservice-app | |
arg: 'no' | |
- app-type: gateway-app | |
arg: 'no' | |
env: | |
JHI_APP: ${{ matrix.app-type }} | |
JHI_ARG: ${{ matrix.arg }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: jhipster-dotnetcore | |
fetch-depth: 2 | |
- uses: jhipster/actions/setup-runner@v0 | |
with: | |
java-version: 17 | |
node-version: ${{ matrix.node_version }} | |
binary-dir: ${{ github.workspace }}/jhipster-dotnetcore/cli/ | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.x' | |
- name: git history | |
run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit | |
working-directory: ${{ github.workspace }}/jhipster-dotnetcore | |
- name: PREPARE jhipster env | |
working-directory: ${{ github.workspace }}/jhipster-dotnetcore | |
run: npm ci && npm link | |
- name: 'GENERATE JHipster.NET app' | |
run: cli.cjs generate-sample ${{ matrix.app-type }} --skip-install --skip-checks --no-insight --with-entities | |
- uses: jhipster/actions/compare-sample@v0 | |
id: compare | |
if: >- | |
github.event.pull_request && | |
!contains(github.event.pull_request.labels.*.name, 'pr: disable-compare') | |
with: | |
generator-path: jhipster-dotnetcore | |
cmd: cli.cjs generate-sample ${{ matrix.app-type }} --skip-install --skip-checks --no-insight --with-entities | |
- name: 'INSTALL AND BUILD DEPENDENCIES of generated app' | |
run: dotnet build | |
env: | |
NODE_ENV: development | |
APP_VERSION: 1.0 | |
- name: 'GENERATE JHipster.NET entities' | |
run: ../jhipster-dotnetcore/test-integration/scripts/04-generate-entities-sample.sh $JHI_APP $JHI_ARG | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: 'RUN SERVER UNIT TESTS of generated app' | |
run: ../jhipster-dotnetcore/test-integration/scripts/06-run-generated-server-tests-of-sample.sh $JHI_APP | |
- name: 'RUN SONAR ANALYZE on generated app' | |
run: ../jhipster-dotnetcore/test-integration/scripts/08-run-sonar-analyze.sh $JHI_APP | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: 'VERIFY FORMAT' | |
run: ../jhipster-dotnetcore/test-integration/scripts/09-verify-format.sh $JHI_APP | |
- name: Dump docker logs | |
if: always() | |
uses: jwalton/gh-docker-logs@v2 |