Skip to content

Commit

Permalink
KOGITO-5517: Provide basic infrastructure and tools to accept new rep…
Browse files Browse the repository at this point in the history
…os inside the Monorepo (apache#558)

* Initial commit

* Create LICENSE

* KOGITO-1808: Add base code

* KOGITO-1808: Remove sample code.

* KOGITO-1808: Bump version to 0.7.0 & Upgrade Quarkus to 1.7.0.Final.

* KOGITO-1808: Preparation for CI

* KOGITO-1808: Preparation for CI

* Update publish-daily-snapshot.yml

* Update publish-daily-snapshot.yml

* KOGITO-1808: Preparation for CI

* Update publish-daily-snapshot.yml

* KOGITO-3100: Add initial readme content.

* Working with kie-tooling-core

* Building fine with kie-tooling-core. Tests not working yet.

* Fix desktop tests

* Fixed everything. Linking working with tgz packages

* Use PF loaders from kie-tooling-core

* Use new 'run-script-if'

* Improve IT tests specially VS Code

* Fix Hub build on build:dev

* Adding CI script

* Update CI to github.base_ref

* Update CI to fetch-depth 0

* Try again

* Try again

* Try again

* Try again

* Try again

* Testing @kie-tooling-core packages

* Small fixes

* More small fixes

* Testing concurrency 1

* Update @kie-tooling-core version to 0.0.2 and fix IT tests

* Fix CI dependencies command

* Try paths

* CI

* Test

* Test 2

* Test 3

* Test 4

* yarn.lock kie-tooling-core 0.0.2

* CI Full

* Test again

* Adding extra checks

* Change order

* Testing composite action

* Testing composite action

* Testing composite action

* Testing composite action 2

* Testing composite action 3

* Testing composite action 4

* Upload build artifacts

* Mkdir sync on Chrome Extension tests

* Fix artifacts and enable video on all cypress tests

* Testing something

* Fixing...

* Testing somethign again

* Fixing again

* Release attempt

* Test again

* Correct version

* Fix setup env action

* Fix setup env action again

* Fix setup env action again again

* Testing create-release-draft outputs

* Testing create-release outputs

* Testing create-release outputs

* Test

* Test

* Fix commented code

* Configure build for all apps

* Fix OS for hub and desktop

* Addding ifs

* Fix runs-on on desktop and hub

* Improve tests shutdonw on chrome extension

* Fix

* Fix

* Fix

* Improve shutdown on tests standalone

* fix vscode extension

* Debug

* Fix setup env

* Fix setup env on macos

* Fixing

* Run bash on all platforms for hub and desktop

* Remote unused actions and add echos to composite action

* Fix scripts on windows

* Fix chrome-ext scripts and kie-tooling-core upgrade to 0.0.5

* Create release.yml

* Update release.yml

* Trigger Build

* Multiple OSs on CI and private packages configured

* kie-tooling-core 0.0.6

* Fix typo

* Fix yarn.lock

* Disable trusted workspaces temporarily

* Fix release workflow

* Dont run Chrome Ext IT Tests on Windows

* Skip desktop IT tests on windows. Add build-env tool

* build-env

* Try to fix tests on Windows (again)....

* Testing chrome ext with start-server-and-test and trying to fix kie-editors-standalone on windows

* Put host back on kie-editors-standalone it tests

* Update wait-on protocol on PMML Editor IT tests

* Improving build-env

* kie-tooling-core 0.0.7

* Fix Windows

* Remove log

* Improve build-env print

* Testing npx

* Back to yarn run

* Improving build-env

* Package dependency graph on README

* Adding braces

* Improve build-env

* Fix --bool conditions on Windows

* kie-tooling-core 0.0.8

* Move to packages/backend-extended-services

* Incorporate kogito-tooling-java (backend-extended-services)

* Remove DS_Store files

* Formatting

* Removing references to kogito-tooling-java

* Configure Maven defautl arguments on CI

* Windows...

* Windows... fix

* Windows.....

* Testing forced powershell on win32 scripts

* Remove unnecessary qutoes

* Always upload artifacts regardless of build result

* Fix Lerna dependencies discovery with private packages

* Run Lerna dependencies discovery script on bash

* Improve workflows

* Add dependency

* kie-tooling-core 0.0.9

* Adding CLI Tools check

* Fix CLI Tools check on Windows

* Add syncpack checks

* Syncpack lodash

* Improve build-env graph

* Including Maven packages on update_version.js

* RELEASE_PROCESS and generated resources check on CI

* Update staging.yml

* Fix update-version-to

* Print parameters as json on staging workflow

* Enter path on windows

* Remove step

* Fix versions

* Fix versions

* Testing new path on Windows

* Upload Online Editor as ZIP

* Update version and fix some dir structures

* Improve README.md

* Improve README.md

* Improve README.md

* Improve README.md

* Deploy staging online editor

* Git add

* Setup path for Kogito Tooling Bot setup action

* Fix symlink

* Only download kogito-online-staging on ubuntu

* Fix Hub download URL

* Fix Hub download URL

* Use bash for generated resources check

* Test uploading artifacts on release

* Improve release workflow

* Fix symlink removal

* Try to fix dependencies on release workflow

* Try again

* Fix jobs names

* Fix chrome ext job name

* Fix chrome ext upload path

* Fix dir creation

* Adding build info to the online editor

* Add commit sha to build info on staging workflow

* Update RELEASE_PROCESS

* Fix generated resources check after running VS Code Extension IT tests

* Do not run CI workflows on draft PRs

* Fix PR

* Bring back kie-tooling-core packages

* Fix dependency mismatches

* Improve dependency graph image

* Improve dependency graph transitive reduction

* Bring back actions to simplify the PR

* Improve PR even more

* Improve PR even more

* Update reference to 'main'

* Use TSC instead of Webpack to build libraries

* Update babel config

* Remove unnecessary babel config

* Debug VS Code extension backend

* MVNW

* Add multi-package-live-reload

* Fix live-reload for other packages

* PR pass

* Align lodash version

* Fix release.yml

* PR fixes

* Remove unnecessary file

* Update README.md

* Format

Co-authored-by: Eder Ignatowicz <[email protected]>
Co-authored-by: Guilherme Caponetto <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2021
1 parent 98f23e4 commit 4a8f07a
Show file tree
Hide file tree
Showing 592 changed files with 5,385 additions and 3,948 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prettier uses LF as line-ending by default. See https://prettier.io/docs/en/options.html#end-of-line
* text=auto eol=lf
84 changes: 84 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: "Setup Kogito Tooling build environment"
description: "setup"

inputs:
os:
description: "Operating System"
required: true
path:
description: "kogito-tooling path"
required: false
default: "."

runs:
using: "composite"
steps:
- name: "Fetch Git tags"
shell: bash
run: |
echo "STEP: Fetch Git tags"
cd ${{ inputs.path }}
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Setup Yarn and Lerna"
shell: bash
run: |
echo "STEP: Setup Yarn and Lerna"
cd ${{ inputs.path }}
npm install -g [email protected] [email protected]
yarn config set network-timeout 1000000
- name: "Setup default Maven args"
shell: bash
run: |
echo "STEP: Setup default Maven args"
cd ${{ inputs.path }}
mkdir .mvn
echo '-ntp' > .mvn/maven.config
- name: "Bootstrap"
shell: bash
run: |
echo "STEP: Bootstrap"
cd ${{ inputs.path }}
yarn bootstrap
- name: "Check yarn.lock"
shell: bash
run: |
echo "STEP: Check yarn.lock"
cd ${{ inputs.path }}
git diff yarn.lock;
[ "0" == "$(git diff yarn.lock | wc -l | tr -d ' ')" ]
- name: "Check dependencies mismatches"
shell: bash
run: |
echo "STEP: Check dependencies mismatches"
cd ${{ inputs.path }}
npx --yes syncpack list-mismatches
- name: "Check format"
shell: bash
run: |
echo "STEP: Check format"
cd ${{ inputs.path }}
yarn format:check
- name: "Start Xvfb (Ubuntu only)"
shell: bash
run: |
echo "STEP: Start Xvfb (Ubuntu only)"
cd ${{ inputs.path }}
if [ "${{ inputs.os }}" == "ubuntu-latest" ]; then
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
fi
- name: "Increase inotify watches (Ubuntu only)"
shell: bash
run: |
echo "STEP: Increase inotify watches (Ubuntu only)"
cd ${{ inputs.path }}
if [ "${{ inputs.os }}" == "ubuntu-latest" ]; then
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
fi
19 changes: 19 additions & 0 deletions .github/actions/setup-kogito-tooling-bot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Setup Kogito Tooling Bot on Git"
description: "setup"

inputs:
path:
description: "kogito-tooling path"
required: false
default: "."

runs:
using: "composite"
steps:
- name: "Setup kogito-tooling-bot"
shell: bash
run: |
echo "STEP: Setup kogito-tooling-bot"
cd ${{ inputs.path }}
git config --global user.email "[email protected]"
git config --global user.name "Kogito Tooling Bot (kiegroup)"
2 changes: 1 addition & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Bump version
shell: bash
run: node ./update_version_to.js ${{ github.event.inputs.new_version }}
run: node ./update_version.js ${{ github.event.inputs.new_version }} --verbose

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
127 changes: 0 additions & 127 deletions .github/workflows/ci.yml

This file was deleted.

Loading

0 comments on commit 4a8f07a

Please sign in to comment.