Skip to content

Commit

Permalink
Merge pull request #1584 from mshima/actions
Browse files Browse the repository at this point in the history
add test for jhipster/actions/build-jhipster-bom
  • Loading branch information
DanielFran authored May 21, 2024
2 parents 664e2b5 + 6e77730 commit 3bf1e89
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/jhipster-actions.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 3bf1e89

Please sign in to comment.