forked from jhipster/generator-jhipster
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jhipster:main' into main
- Loading branch information
Showing
4 changed files
with
118 additions
and
12 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
name: Issue Check | ||
on: | ||
issues: | ||
types: [reopened] | ||
types: [reopened, labeled] | ||
workflow_dispatch: | ||
inputs: | ||
issue: | ||
|
@@ -30,8 +30,20 @@ on: | |
permissions: | ||
contents: read | ||
jobs: | ||
applications: | ||
comment: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
if: "${{ github.event.action != 'labeled' || github.event.label.name == 'area: check' }}" | ||
steps: | ||
- uses: mshick/[email protected] | ||
with: | ||
issue: ${{ inputs.issue || github.event.issue.id }} | ||
message: | | ||
JHipster is [checking sample](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
application: | ||
name: Check issue ${{ inputs.issue || github.event.issue.id }} | ||
needs: comment | ||
runs-on: 'ubuntu-20.04' | ||
defaults: | ||
run: | ||
|
@@ -87,6 +99,7 @@ jobs: | |
- name: 'GENERATION: install JHipster' | ||
run: $JHI_SCRIPTS/10-install-jhipster.sh | ||
- name: 'GENERATION: project' | ||
id: project | ||
run: jhipster from-issue ${{ inputs.issue || github.event.issue.id }} --no-code-workspace | ||
- name: 'GENERATION: jhipster info' | ||
run: $JHI_SCRIPTS/14-jhipster-info.sh | ||
|
@@ -99,9 +112,12 @@ jobs: | |
- name: 'TESTS: backend' | ||
id: backend | ||
run: npm run ci:backend:test --if-present | ||
continue-on-error: true | ||
timeout-minutes: 15 | ||
- name: 'TESTS: frontend' | ||
id: frontend | ||
run: npm run ci:frontend:test --if-present | ||
continue-on-error: true | ||
timeout-minutes: 15 | ||
- name: 'TESTS: packaging' | ||
run: npm run ci:e2e:package --if-present | ||
|
@@ -126,5 +142,30 @@ jobs: | |
name: screenshots-${{ inputs.issue || github.event.issue.id }} | ||
path: ${{ steps.setup.outputs.application-path }}/**/cypress/screenshots | ||
- name: Dump docker logs | ||
if: always() | ||
if: success() || failure() | ||
uses: jwalton/gh-docker-logs@v2 | ||
outputs: | ||
yo-rc: ${{ steps.project.outputs.yo-rc }} | ||
entities-jdl: ${{ steps.project.outputs.entities-jdl }} | ||
application: ${{ steps.project.outputs.result }} | ||
frontend-check: ${{ steps.frontend.outcome }} | ||
backend-check: ${{ steps.backend.outcome }} | ||
e2e-check: ${{ steps.e2e.outcome }} | ||
result-comment: | ||
runs-on: ubuntu-latest | ||
needs: application | ||
if: always() | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: mshick/[email protected] | ||
with: | ||
issue: ${{ inputs.issue || github.event.issue.id }} | ||
message: | | ||
JHipster has completed the [sample check](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
`.yo-rc.json`: ${{ needs.application.outputs.yo-rc }} | ||
Entities JDL: ${{ needs.application.outputs.entities-jdl }} | ||
Application: ${{ needs.application.outputs.application }} | ||
Frontend check: ${{ needs.application.outputs.frontend-check }} | ||
Backend check: ${{ needs.application.outputs.backend-check }} | ||
E2E check: ${{ needs.application.outputs.e2e-check }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -161,6 +161,7 @@ | |
"yeoman-generator": "6.0.0-rc.4" | ||
}, | ||
"devDependencies": { | ||
"@actions/core": "1.10.0", | ||
"@node-loaders/esbuildx": "1.2.0", | ||
"@types/chai": "4.3.5", | ||
"@types/glob": "npm:[email protected]", | ||
|