Skip to content

Commit

Permalink
KOGITO-3560: Kogito Tooling infrastructure refresh and alignment - Pa…
Browse files Browse the repository at this point in the history
…rt 1 (apache#513)

* Upgrade a bunch of dependencies

* Upgrade React to 17

* Fix DevServer and rename commands

* Formatting

* Upgade TypeScript

* Improvements

* restore node_modules for actions

* Restore node_modules from actions again

* Restore missing files from actions

* Remove extra file

* Move Resource Content API to Workspace API

* Rename Channel/Envelope methods. Finallygit status

* Fix desktop tests with Node 16

* Remove cyclic dependency

* Immediately call pollInit

* Update Node/Yarn versions and fix PMML Editor port

* Fix desktop IT tests

* Fix VS Code IT tests

* Remove some dependencies of i18n-common-dictionary

* Move kogitoChannel_ready to kogitoEditor_ready

* Add EnvironmentPlugin

* Configure 'build:dev' and 'build:prod'. Remove 'build'.

* Configure transpileOnly

* Fix transpileOnly

* More stuff

* Remove FIXMEs and fix chrome-extension IT tests

* Code format

* Fix build

* Install Lerna before calling 'yarn bootstrap'

* User 'yarn' instead of 'npx'

* Improve CI

* Fix build parameters

* Upgrade VS Code testing deps

* Format code

* PR review

* Try 'electron-renderer' for Desktop webview

* Upgrade Electron and fix VS Code tests on macOS

* Try to fix Desktop tests on Windows

* Refactor StandaloneEditors testing app

* Testing other stuff on Desktop tests and video of Standalone Editors

* Change waiting strategy on Standalone Editors IT

* Try another things

* Increase timeout to test

* Testing scroll fix on Standalone IT tests

* Not build PMML Showcase during normal build. Use it only on start and it:test

* Try caches fro node_modules on it-tests.yml

* Changed selector for Decision Navigator button

* Use rimraf and add wait before scrollIntoView

* Increase initPolling timeout

* Caches per IT test

* Added ESLint dependencies and restored strictNullChecks

* Wait before clicking on Dock button

* Fix unit tests

* Try Node LTS

* Again..

* Testing Spectron 13

* First version of ESLint + some tests on Desktop tests

* Re-trigger CI

* Code format

* Desktop tests again

* Add Husky

* Try to fix Chrome Extension test

* Code format

* Oops

* Format

* Re-trigger CI 1

* Re-trigger CI 2

* Re-trigger CI 3

* Re-trigger CI 4

* Re-trigger CI 5

* Re-trigger CI 6

* Re-trigger CI 7

* Re-trigger CI 8

* Re-trigger CI 9

* Re-trigger CI 10

* Fix Chrome Ext tests

* Polish chrome extension tests fix

* Do not run Desktop IT tests on Windows due to bug

* Oops

* Add 'run-script-if' to skip linting and testing on CI IT tests workflow

* Fix VS Code ext tests

* Improving IT tests and some other fixes

* Format & fix Chrome Ext IT Tests

* Removing 'yarn format' from hook

* Adding 'pretty-quick' to format staged files.

* PR pass

* Re-trigger CI 1

* Re-trigger CI 2

* Re-trigger CI 3

* Re-trigger CI 4

* Re-trigger CI 5

* Re-trigger CI 6

* Re-trigger CI 7

* Re-trigger CI 8

* Re-trigger CI 9

* Re-trigger CI 10

* Adding Cypress plugin to print the browser logs to stdout

* Try again with different approach

* Re-trigger CI

* Re-trigger CI

* Re-trigger CI

* Re-trigger CI

* Re-trigger CI

* PR pass

* Fix Chrome Extension IT tests

* Oops

* Improve eslint rules

* Remove useless log

* PR fixes

* Improve ESLint rules

* Fixing tests

* Fix Chrome ext tests

* Trying again

* Remove comment

* Adding copyright headers
  • Loading branch information
tiagobento authored May 27, 2021
1 parent 663db8c commit be3ca50
Show file tree
Hide file tree
Showing 324 changed files with 7,986 additions and 7,180 deletions.
48 changes: 48 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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
*
* http://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.
*/

module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
rules: {
"prefer-spread": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-empty-interface": ["error", { allowSingleExtends: true }],
"@typescript-eslint/no-empty-function": "off",
"no-fallthrough": "off",
"no-case-declarations": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-no-target-blank": "off",
},
settings: {
react: {
version: "detect",
},
},
};
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [12.16.3]
yarn: [1.19.1]
node: [16.2.0]
yarn: [1.22.10]
lerna: [4.0.0]

steps:
# https://github.com/prettier/prettier/issues/7825
Expand All @@ -42,17 +43,17 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Setup Yarn
- name: Setup Yarn and Lerna
run: |
npm install -g yarn@${{ matrix.yarn }}
npm install -g lerna@${{ matrix.lerna }} yarn@${{ matrix.yarn }}
yarn config set network-timeout 1000000
- name: Start Xvfb (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

- name: Download dependencies
run: yarn run init
run: yarn bootstrap

- name: Check yarn.lock md5
id: check-yarn-lock-md5
Expand All @@ -68,17 +69,15 @@ jobs:
- name: "Build :: prod and pack"
run: yarn run build:prod
env:
DISPLAY: ":99.0"

- name: Upload VSCode Extension (Ubuntu only)
- name: Upload VS Code Extension (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v1
with:
name: vscode-extension
path: packages/vscode-extension-pack-kogito-kie-editors/dist/vscode_extension_kogito_kie_editors_${{ steps.version.outputs.version }}.vsix

- name: Upload Backend VSCode Extension (Ubuntu only)
- name: Upload Backend VS Code Extension (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v1
with:
Expand Down
Loading

0 comments on commit be3ca50

Please sign in to comment.