build(deps-dev): bump webpack-cli from 7.2.2 to 7.2.3 in /generators/vue/resources #51571
Workflow file for this run
This file contains hidden or 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
| # | |
| # Copyright the original author or authors from the JHipster project. | |
| # | |
| # This file is part of the JHipster project, see https://www.jhipster.tech/ | |
| # for more information. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # | |
| name: Angular | |
| 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' | |
| - '**maintenance' | |
| paths-ignore: | |
| - 'package*.json' | |
| - 'generators/react/**' | |
| - 'generators/vue/**' | |
| pull_request: | |
| types: [closed, opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| env: | |
| FORCE_COLOR: 2 | |
| jobs: | |
| build-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.build.outputs.matrix }} | |
| client: ${{ steps.build.outputs.client }} | |
| server: ${{ steps.build.outputs.server }} | |
| any: ${{ steps.build.outputs.any }} | |
| workflow-angular: ${{ steps.build.outputs.workflow-angular }} | |
| workflow-react: ${{ steps.build.outputs.workflow-react }} | |
| workflow-vue: ${{ steps.build.outputs.workflow-vue }} | |
| steps: | |
| - name: 'SETUP: Checkout generator-jhipster' | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 2 | |
| - run: echo "node-version=$(cat ${{ github.workspace }}/generators/init/resources/.node-version)" >> $GITHUB_OUTPUT | |
| id: node-version | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: ${{ steps.node-version.outputs.node-version }} | |
| - run: npm ci --production --engine-strict --ignore-scripts | |
| - id: build | |
| run: bin/jhipster.cjs github-build-matrix angular --event-name ${{ github.event_name }} | |
| applications: | |
| name: ${{ matrix.job-name }} | |
| runs-on: ${{ matrix.os || 'ubuntu-latest' }} | |
| needs: build-matrix | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: ${{ github.workspace }}/app | |
| if: >- | |
| !contains(github.event.head_commit.message, '[react]') && | |
| !contains(github.event.head_commit.message, '[vue]') && | |
| !contains(github.event.pull_request.title, '[react]') && | |
| !contains(github.event.pull_request.title, '[vue]') && | |
| !contains(github.event.head_commit.message, '[ci skip]') && | |
| !contains(github.event.head_commit.message, '[skip ci]') && | |
| !contains(github.event.pull_request.title, '[skip ci]') && | |
| !contains(github.event.pull_request.title, '[ci skip]') && | |
| github.event.action != 'closed' && | |
| !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci') && | |
| fromJson(needs.build-matrix.outputs.matrix).include[0] != null | |
| timeout-minutes: 50 | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }} | |
| steps: | |
| #---------------------------------------------------------------------- | |
| # Install all tools and check configuration | |
| #---------------------------------------------------------------------- | |
| - name: 'SETUP: Checkout generator-jhipster' | |
| uses: actions/checkout@v7 | |
| with: | |
| path: generator-jhipster | |
| fetch-depth: 2 | |
| - uses: jhipster/actions/setup-runner@v2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| java-version: ${{ matrix.java-version }} | |
| npm-version: ${{ matrix.npm-version }} | |
| maven-cache: true | |
| gradle-cache: ${{ matrix.gradle-cache }} | |
| binary-dir: ${{ github.workspace }}/generator-jhipster/bin | |
| # Fail git operations on line ending mismatches, and make sure that JHipster generates crlf line endings on Windows correctly. | |
| - run: | | |
| git config --global core.autocrlf false | |
| git config --global core.safecrlf true | |
| - name: 'WORKAROUND: Node.js 22 require(esm) V8 crash' | |
| if: startsWith(matrix.node-version, '22') | |
| run: echo "NODE_OPTIONS=${NODE_OPTIONS:+$NODE_OPTIONS }--no-experimental-require-module" >> $GITHUB_ENV | |
| #---------------------------------------------------------------------- | |
| # Install JHipster and generate project+entities | |
| #---------------------------------------------------------------------- | |
| - run: npm ci --production --engine-strict --ignore-scripts | |
| working-directory: ${{ github.workspace }}/generator-jhipster | |
| - name: 'GENERATION: project' | |
| run: jhipster.cjs generate-sample ${{ matrix.sample }} --skip-jhipster-dependencies --skip-checks --skip-install --no-insight | |
| env: | |
| JHI_FOLDER_APP: ${{ github.workspace }}/app | |
| JHIPSTER_DEPENDENCIES_VERSION: ${{ matrix.jhipster-bom-cicd-version }} | |
| JHI_JWT_SECRET_KEY: ${{ matrix.jwt-secret-key }} | |
| - run: jhipster.cjs info | |
| # Make sure that the script-shell is set to bash, otherwise npm scripts will fail on Windows runners | |
| - run: npm config -L project set script-shell=bash | |
| #---------------------------------------------------------------------- | |
| # Detect changes against base commit | |
| #---------------------------------------------------------------------- | |
| - uses: jhipster/actions/compare-sample@v2 | |
| id: compare | |
| if: >- | |
| github.event.pull_request && | |
| matrix.skip-compare != 'true' && | |
| !contains(github.event.pull_request.labels.*.name, 'pr: disable-compare') | |
| with: | |
| generator-path: generator-jhipster | |
| cmd: jhipster.cjs generate-sample ${{ matrix.sample }} --skip-jhipster-dependencies --skip-checks --skip-install --no-insight | |
| env: | |
| # generate-sample uses JHI_FOLDER_APP to generate the application. | |
| JHI_FOLDER_APP: ${{ github.workspace }}/base/app | |
| JHIPSTER_DEPENDENCIES_VERSION: ${{ matrix.jhipster-bom-cicd-version }} | |
| JHI_JWT_SECRET_KEY: ${{ matrix.jwt-secret-key }} | |
| #---------------------------------------------------------------------- | |
| # Launch tests | |
| #---------------------------------------------------------------------- | |
| - uses: jhipster/actions/build-jhipster-bom@v2 | |
| if: matrix.build-jhipster-bom && steps.compare.outputs.equals != 'true' | |
| with: | |
| jhipster-bom-ref: ${{ matrix.jhipster-bom-branch }} | |
| - name: 'TESTS: backend' | |
| id: backend | |
| if: steps.compare.outputs.equals != 'true' && matrix.skip-backend-tests != 'true' | |
| run: npm run ci:backend:test | |
| continue-on-error: ${{matrix.continue-on-backend-tests-error || false}} | |
| timeout-minutes: 15 | |
| # Run npm install for workspaces only, as it is done in packaging for non-workspaces | |
| - name: 'PREPARE: npm install' | |
| if: steps.compare.outputs.equals != 'true' && matrix.workspaces == 'true' | |
| run: npm install | |
| timeout-minutes: 7 | |
| - name: 'TESTS: packaging' | |
| id: packaging | |
| if: steps.compare.outputs.equals != 'true' | |
| run: npm run ci:e2e:package | |
| timeout-minutes: 12 | |
| - name: 'TESTS: frontend' | |
| id: frontend | |
| if: steps.compare.outputs.equals != 'true' && matrix.skip-frontend-tests != 'true' | |
| run: npm run ci:frontend:test | |
| timeout-minutes: 15 | |
| - name: 'TESTS: Start docker compose containers for e2e tests' | |
| id: docker-compose | |
| if: steps.compare.outputs.equals != 'true' && runner.os == 'Linux' | |
| run: npm run ci:e2e:prepare | |
| timeout-minutes: 5 | |
| - name: 'E2E: Run' | |
| id: e2e | |
| if: steps.compare.outputs.equals != 'true' && runner.os == 'Linux' | |
| run: npm run ci:e2e:run --if-present | |
| timeout-minutes: 15 | |
| env: | |
| CYPRESS_video: >- | |
| ${{ contains(github.event.pull_request.labels.*.name, 'ci: cypress-video') && 'true' || 'false' }} | |
| - name: Store the application | |
| uses: actions/upload-artifact@v7 | |
| if: always() && (steps.backend.outcome == 'failure' || steps.e2e.outcome == 'failure' || steps.frontend.outcome == 'failure' || steps.packaging.outcome == 'failure' || steps.docker-compose.outcome == 'failure') | |
| with: | |
| name: app-${{ matrix.sample }} | |
| include-hidden-files: true | |
| path: | | |
| ${{ github.workspace }}/app/**/* | |
| !**/app/build/** | |
| !**/app/*/build/** | |
| !**/app/.gradle/** | |
| !**/app/*/.gradle/** | |
| !**/app/target/** | |
| !**/app/*/target/** | |
| !**/node_modules/** | |
| - name: 'BACKEND: Store failure logs' | |
| uses: actions/upload-artifact@v7 | |
| if: always() && steps.backend.outcome == 'failure' | |
| with: | |
| name: log-${{ matrix.sample }} | |
| path: ${{ github.workspace }}/app/**/test-results/**/*.xml | |
| - name: 'E2E: Store failure cypress assets' | |
| uses: actions/upload-artifact@v7 | |
| if: | | |
| always() && ( | |
| contains(github.event.pull_request.labels.*.name, 'ci: always-upload-cypress-assets') | |
| || steps.e2e.outcome == 'failure') | |
| with: | |
| name: cypress-${{ matrix.sample }} | |
| path: | | |
| ${{ github.workspace }}/app/**/cypress/screenshots | |
| ${{ github.workspace }}/app/**/cypress/videos | |
| - name: Dump docker logs | |
| if: always() && runner.os == 'Linux' | |
| uses: jwalton/gh-docker-logs@v2 | |
| - name: 'ANALYSIS: Sonar analysis' | |
| if: >- | |
| github.event_name == 'push' && | |
| github.repository == 'jhipster/generator-jhipster' && | |
| matrix.sonar-analyse == 'true' | |
| run: | | |
| ./mvnw -ntp --batch-mode initialize org.jacoco:jacoco-maven-plugin:prepare-agent sonar:sonar \ | |
| -Dsonar.host.url=https://sonarcloud.io \ | |
| -Dsonar.projectKey=jhipster-sample-application \ | |
| -Dsonar.organization=jhipster \ | |
| -Dsonar.login=$SONAR_TOKEN | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| - name: 'ANALYSIS: Local SonarQube PR Analysis' | |
| if: >- | |
| matrix.sonar-analyse == 'true' && | |
| !contains(github.event.pull_request.labels.*.name, 'pr: disable-sonar') && | |
| steps.compare.outputs.equals != 'true' | |
| uses: ./generator-jhipster/.github/actions/sonar | |
| with: | |
| sonar-project-key: ${{ matrix.sample }} | |
| application-dir: ${{ github.workspace }}/app | |
| docker-compose-file: ${{ github.workspace }}/generator-jhipster/.github/actions/sonar/docker-compose.yml | |
| comment-token: ${{ secrets.JHIPSTER_PAT_PR_ISSUES }} | |
| check-angular: | |
| permissions: | |
| contents: none | |
| runs-on: ubuntu-latest | |
| needs: [applications] | |
| if: always() | |
| steps: | |
| - run: | | |
| echo '${{ toJSON(needs) }}' | |
| if [ 'skipped' == '${{ needs.applications.result }}' ] || [ 'success' == '${{ needs.applications.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then | |
| exit 0 | |
| fi | |
| exit 1 |