mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-06-29 22:23:46 +00:00
Base implementation
This commit is contained in:
parent
05d156a5b0
commit
74703c48f3
53 changed files with 34684 additions and 392 deletions
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
version: 2
|
||||
updates:
|
||||
# Enable version updates for npm
|
||||
- package-ecosystem: 'npm'
|
||||
# Look for `package.json` and `lock` files in the `root` directory
|
||||
directory: '/'
|
||||
# Check the npm registry for updates every day (weekdays)
|
||||
schedule:
|
||||
interval: 'daily'
|
20
.github/pull_request_template.md
vendored
Normal file
20
.github/pull_request_template.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
**Thank you for submitting this pull request**
|
||||
|
||||
fix _(please add the issue ID if it exists)_
|
||||
|
||||
### Referenced pull requests
|
||||
|
||||
<!-- Add URLs of all referenced pull requests if they exist. This is only required when making
|
||||
changes that span multiple kiegroup repositories and depend on each other. -->
|
||||
<!-- Example:
|
||||
- https://github.com/kiegroup/droolsjbpm-build-bootstrap/pull/1234
|
||||
- https://github.com/kiegroup/drools/pull/3000
|
||||
- https://github.com/kiegroup/optaplanner/pull/899
|
||||
- etc.
|
||||
-->
|
||||
|
||||
### Checklist
|
||||
- [ ] Documentation updated if applicable.
|
||||
- [ ] Changelog updated if applicable.
|
||||
|
||||
> **Note:** `dist/cli/index.js` and `dist/gha/index.js` are automatically generated by git hooks and gh workflows.
|
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: "Master CI and Pre Release"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16]
|
||||
os: [ubuntu-latest]
|
||||
fail-fast: true
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Node ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm test
|
24
.github/workflows/pull-request.yml
vendored
Normal file
24
.github/workflows/pull-request.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: "Pull Request Checks"
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16]
|
||||
os: [ubuntu-latest]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Node ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm test
|
44
.github/workflows/release.yml
vendored
Normal file
44
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
# This workflow create a new tag, a release and then publish it to NPM.
|
||||
|
||||
name: "Create Release"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'version to bump [major, minor, patch, premajor, preminor, prepatch, prerelease]'
|
||||
required: false
|
||||
default: patch
|
||||
type: string
|
||||
message:
|
||||
description: 'version commit message to be used'
|
||||
required: false
|
||||
default: 'Bumping version %s'
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
tag-and-publish:
|
||||
name: "Tag and Publish"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm version $(semver $npm_package_version -i ${{ inputs.version }}) -m "${{ inputs.message }}"
|
||||
- run: npm install
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
create-release:
|
||||
name: "Create Release"
|
||||
needs: tag-and-publish
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "${{ inputs.version }}"
|
||||
prerelease: false
|
Loading…
Add table
Add a link
Reference in a new issue