From 6e77730ff721dabaa95a4de9263e6e43405b64c4 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 20 May 2024 10:27:44 -0300 Subject: [PATCH] test jhipster/actions/build-jhipster-bom --- .github/workflows/jhipster-actions.yml | 50 ++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/jhipster-actions.yml diff --git a/.github/workflows/jhipster-actions.yml b/.github/workflows/jhipster-actions.yml new file mode 100644 index 000000000..8192e6d60 --- /dev/null +++ b/.github/workflows/jhipster-actions.yml @@ -0,0 +1,50 @@ +# +# 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: JHipster Actions. + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + branches: + - main + +jobs: + build-jhipster-bom: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + jhipster-bom-version: [0.0.0-CICD, 0.0.1] + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - uses: jhipster/actions/setup-runner@v0 + with: + node-version: 20 + java-version: 17 + maven-cache: true + npm-cache: false + - uses: jhipster/actions/build-jhipster-bom@v0 + with: + jhipster-bom-ref: ${{ github.sha || github.ref }} + jhipster-bom-version: ${{ matrix.jhipster-bom-version }} diff --git a/package.json b/package.json index fbd585d4d..4bc156cc4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "install-jar": "./mvnw install -Dgpg.skip=true", "prettier:check": "prettier --check .", "prettier:format": "prettier --write .", - "replace-version": "mvn versions:set -DnewVersion=0.0.0-CICD -DgenerateBackupPoms=false", + "replace-version": "./mvnw -ntp versions:set -DnewVersion=${JHI_VERSION:-0.0.0-CICD} -DgenerateBackupPoms=false", "test": "npm run prettier:check" }, "devDependencies": {