Skip to content

Commit

Permalink
generate-blueprint: workflow adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 24, 2024
1 parent cbb7bfe commit 10a1fcd
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
npm install
./cli/cli.cjs github-build-matrix
samples:
name: ${{ matrix.sample-name }}
name: ${{ matrix.job-name || matrix.sample-name }}
runs-on: ubuntu-latest
needs: build-matrix
defaults:
Expand All @@ -48,19 +48,17 @@ jobs:
maven-cache: true
gradle-cache: true
binary-dir: ${{ github.workspace }}/generator-jhipster-<%= baseName %>/cli/
- name: 'Install blueprint'
run: npm install
- run: npm install
working-directory: ${{ github.workspace }}/generator-jhipster-<%= baseName %>
- name: 'Generate Project'
run: cli.cjs generate-sample ${{ matrix.sample-name }} --skip-jhipster-dependencies --force
- run: cli.cjs generate-sample ${{ matrix.sample-name }} --skip-jhipster-dependencies ${{ matrix.extra-args }}
- 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: generator-jhipster-<%= baseName %>
cmd: cli.cjs generate-sample ${{ matrix.sample-name }} --skip-jhipster-dependencies --force --skip-install
cmd: cli.cjs generate-sample ${{ matrix.sample-name }} --skip-jhipster-dependencies --skip-install ${{ matrix.extra-args }}
- run: npm run ci:backend:test
if: steps.compare.outputs.equals != 'true'
id: backend
Expand All @@ -73,15 +71,15 @@ jobs:
- run: npm run ci:e2e:run --if-present
if: steps.compare.outputs.equals != 'true'
id: e2e
- name: 'BACKEND: Store failure logs'
- name: Store backend test failure logs
uses: actions/upload-artifact@v4
if: always() && steps.backend.outcome == 'failure'
with:
name: log-${{ matrix.sample-name }}
path: |
${{ github.workspace }}/app/build/test-results/**/*.xml
${{ github.workspace }}/app/target/surefire-reports
- name: 'E2E: Store failure screenshots'
- name: Store cypress screenshots
uses: actions/upload-artifact@v4
if: always() && steps.e2e.outcome == 'failure'
with:
Expand Down

0 comments on commit 10a1fcd

Please sign in to comment.