Skip to content

Commit

Permalink
Formatted root
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Marko committed Mar 11, 2021
1 parent f367f84 commit bcfb761
Show file tree
Hide file tree
Showing 16 changed files with 155 additions and 144 deletions.
4 changes: 2 additions & 2 deletions .github/actions/env-to-json/index.js
Expand Up @@ -20,7 +20,7 @@ const fs = require("fs");

function filterObjectProperties(object, prefix) {
return Object.keys(object)
.filter(key => key.startsWith(prefix))
.filter((key) => key.startsWith(prefix))
.reduce((obj, key) => {
const keyToSave = key.replace(prefix, "");
obj[keyToSave] = object[key];
Expand All @@ -34,7 +34,7 @@ try {

console.log(JSON.stringify(json, null, 4));

fs.writeFile(path, JSON.stringify(json), "utf8", function(err) {
fs.writeFile(path, JSON.stringify(json), "utf8", function (err) {
if (err) {
console.log("An error occurred while writing JSON Object to File.");
return console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/json-to-output/index.js
Expand Up @@ -24,7 +24,7 @@ try {
const jsonString = fs.readFileSync(path);
const json = JSON.parse(jsonString);

Object.keys(json).forEach(key => {
Object.keys(json).forEach((key) => {
core.setOutput(key, json[key]);
console.log("Set output '" + key + "' to '" + json[key] + "'");
});
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/it-tests.yml
Expand Up @@ -102,14 +102,14 @@ jobs:
- name: Run integration tests
run: npx lerna run test:it --scope '@kogito-tooling/online-editor' --stream

- name: Archive it test screenshots
- name: Archive it test screenshots
if: failure()
uses: actions/upload-artifact@v1
with:
name: online-editor-it-tests-screenshots-${{ matrix.os }}
uses: actions/upload-artifact@v1
with:
name: online-editor-it-tests-screenshots-${{ matrix.os }}
path: packages/online-editor/it-tests/screenshots

- name: Archive it test videos
- name: Archive it test videos
if: failure()
uses: actions/upload-artifact@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_maven_bpmn_editor_unpacked.yml
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
mvnVersion:
description: 'Maven version'
description: "Maven version"
required: true
npmVersion:
description: 'NPM version'
description: "NPM version"
required: true

jobs:
Expand All @@ -21,4 +21,4 @@ jobs:
mvn package -B -ntp -Dversion.bpmn.webapp=${{ github.event.inputs.mvnVersion }}
npm version ${{ github.event.inputs.npmVersion }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public
npm publish --access public
6 changes: 3 additions & 3 deletions .github/workflows/publish_maven_dmn_editor_unpacked.yml
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
mvnVersion:
description: 'Maven version'
description: "Maven version"
required: true
npmVersion:
description: 'NPM version'
description: "NPM version"
required: true

jobs:
Expand All @@ -21,4 +21,4 @@ jobs:
mvn package -B -ntp -Dversion.dmn.webapp=${{ github.event.inputs.mvnVersion }}
npm version ${{ github.event.inputs.npmVersion }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public
npm publish --access public
19 changes: 7 additions & 12 deletions .github/workflows/publish_maven_editors_snapshot_version.yml
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
kogitoToolingForkToUpdate:
description: 'PR Fork to update (optional)'
description: "PR Fork to update (optional)"
required: false
kogitoToolingBranchToUpdate:
description: 'PR Branch to update (optional)'
description: "PR Branch to update (optional)"
required: false

jobs:
Expand All @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-java@v1
with:
java-version: '8'
java-version: "8"

- name: Checkout droolsjbpm-build-bootstrap
uses: actions/checkout@v2
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
path: ${{ github.workspace }}/kie-wb-common
repository: kiegroup/kie-wb-common
fetch-depth: 0

- name: Checkout drools-wb
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
NPM_VERSION=`echo $MVN_VERSION-$DATE.$TIME`
echo $NPM_VERSION
echo ::set-output name=version::$NPM_VERSION
- name: Publish BPMN Editor
run: |
cd ${{ github.workspace }}/kogito-tooling/.github/supporting-files/publish_maven_editors_snapshot_version/bpmn-editor-unpacked
Expand All @@ -124,7 +124,7 @@ jobs:
npm version ${{ steps.newEditorsVersionOnNpm.outputs.version }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public --tag snapshot
- name: Publish DMN Editor
run: |
cd ${{ github.workspace }}/kogito-tooling/.github/supporting-files/publish_maven_editors_snapshot_version/dmn-editor-unpacked
Expand All @@ -133,7 +133,7 @@ jobs:
npm version ${{ steps.newEditorsVersionOnNpm.outputs.version }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public --tag snapshot
- name: Publish SceSim Editor
run: |
cd ${{ github.workspace }}/kogito-tooling/.github/supporting-files/publish_maven_editors_snapshot_version/scesim-editor-unpacked
Expand Down Expand Up @@ -180,8 +180,3 @@ jobs:
git add .
git commit -m "Update Editors to ${{ steps.newEditorsVersionOnNpm.outputs.version }}"
git push
6 changes: 3 additions & 3 deletions .github/workflows/publish_maven_quarkus_runner_unpacked.yml
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
mvnVersion:
description: 'Maven version'
description: "Maven version"
required: true
npmVersion:
description: 'NPM version'
description: "NPM version"
required: true

jobs:
Expand All @@ -21,4 +21,4 @@ jobs:
mvn package -B -ntp -Dversion.quarkus.runner=${{ github.event.inputs.mvnVersion }}
npm version ${{ github.event.inputs.npmVersion }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public
npm publish --access public
6 changes: 3 additions & 3 deletions .github/workflows/publish_maven_scesim_editor_unpacked.yml
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
mvnVersion:
description: 'Maven version'
description: "Maven version"
required: true
npmVersion:
description: 'NPM version'
description: "NPM version"
required: true

jobs:
Expand All @@ -21,4 +21,4 @@ jobs:
mvn package -B -ntp -Dversion.scesim.webapp=${{ github.event.inputs.mvnVersion }}
npm version ${{ github.event.inputs.npmVersion }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.KIEGROUP_NPM_TOKEN }}" > ~/.npmrc
npm publish --access public
npm publish --access public
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_full_downstream_ci.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/setup-java@v1
with:
java-version: '8'
java-version: "8"

- name: Increase inotify watches
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
name: hub-app-linux-fdb
path: ${{ github.workspace }}/kogito-tooling/packages/hub/out/Business Modeler Hub Preview-linux-x64.tar.gz

- name: 'Checkout kogito-online-ci'
- name: "Checkout kogito-online-ci"
if: github.repository == 'kiegroup/kogito-tooling'
uses: actions/checkout@v2
with:
Expand All @@ -338,7 +338,7 @@ jobs:
ref: gh-pages

# For this step to work properly, you have to add the owner of KOGITO_TOOLING_BOT_TOKEN as collaborator on 'kogito-online-ci'.
- name: 'Update kogito-online-ci resources'
- name: "Update kogito-online-ci resources"
if: github.repository == 'kiegroup/kogito-tooling'
run: |
cd ${{ github.workspace }}/kogito-online-ci
Expand Down

0 comments on commit bcfb761

Please sign in to comment.